Originally posted by netharam ram:
Hi, I want to encrypt a text & save it to file,which should not be human readable or easily understandable.In my application I want to read the file & decrypt the text.Please reply with some code if possible.
From my understanding of the question, the encryption/decryption is done by the same party, correct me if I am wrong, symmetric algorithm is the way to go. Blowfish is a new and better symmetric encryption algorithm. DES is another one... I used Blowfish encryption, our product has just shipped to Disney.
RSA is for encrypting by one party and decrypting by another party. RSA or other Public/Private Key pair system (e.g. D-H Public-Key Directory) solved the famous key transportation problem. Read a very good introductory from here:
Introduction To Cryptography MD5 or other one-way digest encryption algorithm is for encrypting password, which means you never want to decrypt it back. I used it on
our project team login page for a little more than a year now...
Different encryption algorithms solve different problems and are used for different purposes...

[ May 05, 2002: Message edited by: Roseanne Zhang ]