Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-20-2004, 12:38 AM   #1
Member (13 bit)
 
Floppyman's Avatar
 
Join Date: Mar 1999
Posts: 6,791
Encryption and JAVA

Hi all,

I'm looking for encryption algorithm (perhaps based off blowfish, DES, or AES) that will work with JAVA. The thing is that I need to be able to encrypt strings and all I have been able to find are implementations that encrypt arrays of bytes. Does anyone out there have any suggestions/ideas? Thanks in advance.
Floppyman is offline   Reply With Quote
Old 04-20-2004, 04:34 AM   #2
Gremlin Overlord
 
Jaggannath's Avatar
 
Join Date: Apr 2003
Location: Australia
Posts: 2,382
We once wrote a program that did exactly that. I'll try find it's code for you now
It was very basic though... you still want it, or you looking for something swish??
Jaggannath is offline   Reply With Quote
Old 04-20-2004, 07:57 AM   #3
Member (3 bit)
 
Join Date: Apr 2004
Posts: 4
You can find free source code for the Blowfish algorithm on the Counterpane website, do a search for it in google.

What I did was convert the string to a byte array and then encrypt it as standard using Blowfish.
claudelacey is offline   Reply With Quote
Old 04-20-2004, 08:13 AM   #4
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
All encryption algorithms encrypt byte arrays. But that's no problem; a string is a byte array too.

This site looks like it has a Blowfish implementation in Java: http://web.bsn.ch/lasse/bfacs.htm

If you are really interested in cryptography, get the book Applied Cryptography by Bruce Schneier. It has C source code for many algorithms. It would take some work to port the code to Java, since it relies heavily on memory pointers, but it could be done.
doctorgonzo is offline   Reply With Quote
Old 04-21-2004, 11:36 PM   #5
Member (13 bit)
 
Floppyman's Avatar
 
Join Date: Mar 1999
Posts: 6,791
Thanks for the replies. The information that was on the site doctorgonzo posted is what I needed. Thanks again.
Floppyman is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:53 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2