my dog learned polymorphism*
The moose likes Security and the fly likes SHA1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "SHA1 " Watch "SHA1 " New topic
Author

SHA1

Jeffery Young
Greenhorn

Joined: Feb 27, 2009
Posts: 1
I'm writing a simple java application that allows one to register a username and password. The username will be stored to a simple .txt file in clear text and the password is to be hashed using SHA1 and stored next to the username in the file. This is for demonstration purposes only, not for a program in use. Any ideas on where I can find how to hash a string using SHA1 with Java?
greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
google would be an excellent start. See also the MessageDigest class in the javadocs, and the JCE reference guide.


Nice to meet you.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SHA1
 
Similar Threads
Password Encryption
Encrypted Password for Oracle JDBC
Password encryption in tomcat 5.
Reading password information from a text file.
how to test (junit4) this mysql funciton?