Solved

Encrypt and decrypt issue

Posted on 2013-01-16
4
698 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

627 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