Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Decrypting blowfish msges used on irc

843810Nov 29 2004 — edited Jan 13 2005
Hello,

On IRC it is pretty common these days to use blowfish for encryption. Common used libraries for this are the Fish plugin for MIRC (http://fish.sekure.us/) and the blowfish module from eggdrop (http://www.eggheads.org/).

I have build a Java IRC bot and I try to let it understand blowfish. First of all on IRC some weird BASE64 encoding is used (A-Z, a-z, "/" and "."). I'm kind of an Cryptography noob and can't read C properly, so the sources of eggdrop didn't helped me that much. Is there anyone that can enlighten me

Second thing is that BlowFish in Java has many features. I didn't find any good explanation about which features they use on IRC. Code below is used in lots of classes but does it work for irc messages?

KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
kgen.init(448);
SecretKey skey = kgen.generateKey();

byte[] raw = key.getBytes();
SecretKeySpec skeySpec = new SecretKeySpec(raw, "Blowfish");

Cipher cipher = Cipher.getInstance("Blowfish/ECB/PKCS5Padding");

Please help me out. Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2005
Added on Nov 29 2004
2 comments
425 views