encryption - What algorithm should I use for encrypting and embedding a password for an application? -


Which algorithm should I use to embed a password for an encryption and an encryption?

This is not explicitly bullet proof but should be sufficient to fail anyone scanning the database with hex editor, or to detect code by scanning for encrypted password. Use difficulties to use, or use the debugger to run through decryption code.

Object Pascal would be nice.

Major Editing

I think I did not understand myself adequately, password should be decrypted back to its original form and applied Will be done. This application uses the local SQL database and the local webserver, and the password is fixed and can not be changed by the end users. It is to ensure that changes will be made only within the app.

/ vfclists

If you want an easy solution, just press Paste with good hashing algorithms such as MD5 and store only hash inside your app. Then whenever the user joins the password, you will calculate the password hash and check that it is equal to someone stored.

Of course this approach is a simple solution that does not allow you to retrieve the password if it's lost, but you need some protection, then it should work quite well ..

EDIT: I mentioned MD5 that was fair was good but now no, absolutely any other strong functions such as SHA-2 (512) / 384) which is stronger than just a specific hashing algorithm The use instead would like to explain a point of view.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -