Solved

Encrypt and decrypt issue

Posted on 2013-01-16
4
687 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

735 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