Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

crypting a String

 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
is there a class that can allow me to Crypt a String
or i need to do it myself?
Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By "Crypt" a String, do you mean encrypt or hash? Or do you want to know how to put a String in the room under a church?

Have a look at the java.security packages. Sun supplies classes to ancrypt/hash stuff using a range of algorithms. There are tools to encrypt or hash Strings there.
 
Marcus Pant
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi omar,

try this:
http://www.javaalmanac.com/egs/javax.crypto/DesString.html

worked for me fine to encrypt/decrypt url-params.
 
George Franciscus
author
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like this tutorial on developerworks. It explains it all.

Java security, Part 1: Crypto basics
 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to put a String in the room under a church?


Sorry I am French educated, and thanks guys for
The help
Omar
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No need to apologise. Your English is way better than my French.

[ February 01, 2005: Message edited by: Paul Sturrock ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic