[JAVA] Need help with encryption?
I’m writing an email address and pass to be stored in a .db file, but it can easily be stolen by just reading it. How can I encrypt it without being easily decrypted by an outside source? I also need to be able to decrypt it for the program.
Can I use Java’s Security/Crypto API or do I have to create my own encryption method? And how can I make sure that someone can’t just decompile my .class file and read the algorithm?
Thanks a bunch, giving out best answer,
~Arthur
SOLVED, PLEASE ANSWER MY NEW ENCRYPTION QUESTION: http://answers.yahoo.com/question/index?qid=20110221154027AAbXZoP
Tagged with: algorithm • arthur • crypto api • encryption method • question index • security crypto • thanks a bunch • yahoo
Filed under: crypto and decrypt
Like this post? Subscribe to my RSS feed and get loads more!
Take a look at various tutorials you can find using the search terms:
java one way encryption
You don’t really want to encrypt/decrypt the password as I gather from your question. When I type in my password "foo", pretend it encrypts to "bar". The next time I enter it, I don’t need to decrypt "bar" to see if it matches what I enter, I simply encrypt "foo" again and make sure it matches the encrypted value in the database.