UnixCrypt algorithm
-
Hi, I am using UnixCrypt class file for encryption in my application. I have confusion to passing the parameters to the Crypt method. There are Two methods are available, UnixCrypt.Crypt("Text To be Encrypt"); UnixCrypt.Crypt(Salt character ,TextTo be encrypt); My PAssword is : encrypt8 Note : can u any one plz clearly tell me the parameter which i have to pass to the proper Crypt method. What is meant by the Salt characters. Plz let me clear my dowts. regards,
kannak
-
Hi, I am using UnixCrypt class file for encryption in my application. I have confusion to passing the parameters to the Crypt method. There are Two methods are available, UnixCrypt.Crypt("Text To be Encrypt"); UnixCrypt.Crypt(Salt character ,TextTo be encrypt); My PAssword is : encrypt8 Note : can u any one plz clearly tell me the parameter which i have to pass to the proper Crypt method. What is meant by the Salt characters. Plz let me clear my dowts. regards,
kannak
http://en.wikipedia.org/wiki/Salt_%28cryptography%29[^] Salt is basically a second password, but one generally used for an entire password database. In other words, a server would have a single salt key, used for all the passwords. It modifies the encryption algorithm so if the database is stolen without the salt key, it's exponentially more difficult to crack.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels) -
Hi, I am using UnixCrypt class file for encryption in my application. I have confusion to passing the parameters to the Crypt method. There are Two methods are available, UnixCrypt.Crypt("Text To be Encrypt"); UnixCrypt.Crypt(Salt character ,TextTo be encrypt); My PAssword is : encrypt8 Note : can u any one plz clearly tell me the parameter which i have to pass to the proper Crypt method. What is meant by the Salt characters. Plz let me clear my dowts. regards,
kannak
Both are static members. If you use the first method, it will randomly generate the salt characters for you and then call the second method. Salt, in this case, are two letters that are used to provide some extra randomness for the encryption, and allow you to repeat any previous encryption (if you also have the text that was encrypted). Another thing users should know is that the text to encrypt should not be more then 8 characters long. If your text is longer than 8 characters, only the first 8 are used and the rest is ignored.