Solved

Encrypt and decrypt issue

Posted on 2013-01-16
4
664 Views
Last Modified: 2013-01-18
Would like to encrypt a password and save it in a file/database, and then get the encrypted password in the file and decrypt it. Could any guru please show me a simply example on how to do that in Java?
0
Comment
Question by:jl66
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 450 total points
ID: 38784668
http://www.code2learn.com/2011/06/encryption-and-decryption-of-data-using.html is the sort of thing you'd need. Bear in mind that storing the hashed password (so that NO-ONE can decrypt it) is the best practice
0
 
LVL 16

Assisted Solution

by:Valeri
Valeri earned 50 total points
ID: 38786138
CEHJ i right, you must use one-way hash encryption. This is a strong obligation when dealing with passwords.
http://www.devbistro.com/articles/Java/Password-Encryption
0
 

Author Closing Comment

by:jl66
ID: 38793461
Great tips. Thanks a lot.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 38793732
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven example error 3 54
Error with Java/Cache JDBC Classpath 2 31
Java / Linux and Regular Expressions 11 71
how to install java on RHEL image on EC2 4 10
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now