Re: Encrypt/decrypt problem




what do you expect to see when you encrypt a data?


On Tue, 9 Oct 2007 18:40:01 -0700, WT <WT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Thanks for your advise.

I didn't mean I wanted to encrypt/decrypt Chinese character. The string is
alphanumeric but the encrypted string become 'alien' charater and no way to
decrypt back to orignal.

I also tried other encryption FLL but result was the same.





"Josh Assing" wrote:

While I've not used the crypt class with chinese characters -- I stopped using
the crypt class becuase I get different results on different machines/os's

I'd use something specifically for encryption -- NetLib for industrial strength;
or the crypt fll from Sweetpotato software....

On Tue, 9 Oct 2007 01:48:00 -0700, WT <WT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hi there, I try to follow vfp 9 _crypto sample to encrypt/decrypt a string
under Vista pc (this pc also configure to read n write chinese charactor).

Problem is, the encrypted string generated from _crypt.vcx looks like gabage
character that couldnot be decrypted back to the original string.

Any idea?
TIA



.



Relevant Pages

  • Re: Byte array to string and back - newbie question
    ... // Create a symmetric algorithm. ... This is done to make encryption more ... // Encrypt a string into a string using a password ... // Decrypt a byte array into a byte array using a key and an IV ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Using Python To Create An Encrypted Container
    ... an encrypted archive utility designed for secure archiving ... A match string allows you to only extract files matching a given ... Encrypt the string s using passwd and encryption cipher enc ...
    (comp.lang.python)
  • Re: simple string encryption
    ... which seems to be a fast and small xor encryption algorithm. ... string into a textbox and then read the string from the textbox ... The reason is because strings in VB use two bytes per character and your code, as it stands, is messing about with both bytes of each character. ...
    (microsoft.public.vb.general.discussion)
  • Re: Encryption algorithm
    ... > character alphanumeric string in a COBOL program. ... consider these "obscuring" rather than "encryption", ... that you run the string through the same algorithm to encode and decode. ... This has the advantage of working with pretty much any character you'd ...
    (comp.lang.cobol)
  • Re: How good an encryption algorithm is this?
    ... As long as the string can be converted to/from a byte stream, ... then you can apply that after the encryption. ... > So I decided to invent my own algorithm, and I just wanted anybody's> opinion on how secure this could be compared to the Win32 API version. ... > HCRYPTHASH hCryptHash; ...
    (microsoft.public.dotnet.languages.csharp)