• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple password encryption

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I have a problem here. I need to encrypt my passwords in the database. I dont want to use the powerful java Cryptography API which requires the download of JCE . I want the encryption to be simple. How can i do it??
Regards
saj
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can Hash it and store the hash, you can checksum it and store the checksum, you can alternately shift each chacter a set number of bits a different way, you can develop your own letter substitution matrix like the old decoder rings. or you can mask the string with a key. You could use UUEncode or Base64Encode. Any of these ways will work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic