For your purposes any standard hash algorithm that produces the desired number of bits should be fine. The "weakness" of hash algorithms has to do mostly with the ability to "counterfeit" data that produces a given hash value -- this is an important consideration when the hash is being used in a "digital signature" algorithm, but not important if you're just hashing, say, an alpha password to create a key.
On May 10, 12:52 am, pasamblue1 <[email protected]> wrote: > I am developing an android application for encryption decryption of > messages. I need some hash algorithm to generate key from password. I > am using SHA1 for the same. Not sure if it is good to use it for > security reasons. Is there any other algorithm to be used as hash > function. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

