This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, All, I want to encrypt my password text and want to save into database and I want to fetch that password from database and decrypt and want to mach. Give some link or docs link for overcom my this problem , I m very new for that. Thanks Vikas
Do you really want to decrypt and compare or only compare? If it is the latter, you should use a hash function and not use uncryption. Many databases have both hash and encrypt/decrypt functions built in. If you want to do it in Java (It's not that hard, but I don't recommend it if you don't have some previous experience in cryptopraphy) then look at the JCE. I would recommend the book Translucent Databases. It's way more information than you need, but it has some code samples for doing hashing and encryption/decryption both in the database and in SQL.