|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (13 bit)
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. |
|
|
|
|
|
#2 |
|
Gremlin Overlord
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?? |
|
|
|
|
|
#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. |
|
|
|
|
|
#4 |
|
Professional gadfly
|
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. |
|
|
|
|
|
#5 |
|
Member (13 bit)
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.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|