aspose file tools*
The moose likes Beginning Java and the fly likes crypting a String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "crypting a String" Watch "crypting a String" New topic
Author

crypting a String

omar bili
Ranch Hand

Joined: Aug 13, 2004
Posts: 177
Hi
is there a class that can allow me to Crypt a String
or i need to do it myself?
Thanks
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Marcus Pant
Greenhorn

Joined: May 21, 2004
Posts: 7
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

Joined: Jan 25, 2005
Posts: 32
I like this tutorial on developerworks. It explains it all.

Java security, Part 1: Crypto basics


George Franciscus<br />george.franciscus@nexcel.ca<br /><a href="http://www.nexcel.ca" target="_blank" rel="nofollow">http://www.nexcel.ca</a><br /><a href="http://www.manning.com/franciscus" target="_blank" rel="nofollow">http://www.manning.com/franciscus</a>
omar bili
Ranch Hand

Joined: Aug 13, 2004
Posts: 177
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

Joined: Apr 14, 2004
Posts: 10336

No need to apologise. Your English is way better than my French.

[ February 01, 2005: Message edited by: Paul Sturrock ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: crypting a String