Hal,
I am having a similar problem where I am able to decrypt using perl but
not java and wondered if you could help?
With perl I am using:
my $cipher = Crypt::CBC->new($keyword, 'Blowfish');
my $decrypted = $cipher->decrypt($string);
With java I am using:
Cipher cipher = Cipher.getInstance("Blowfish/CBC/PKCS5Padding");
cipher.init(Cipher.DECRYPT_MODE, skeySpec, iv);
byte[] decrypted = cipher.doFinal(string);
but get the following error:
javax.crypto.BadPaddingException: Given final block not properly padded
Please can you let me know how you got it working?
Thanks for any help,
Steve.
-------------------------------------
Hal Vaughan wrote:
> Jim,
> Encryption is not something I understand or do well. Your answers were
> not
> only helpful, but your sources were good ones for me to learn from.
> Between your post and the sources you cited, I was able to take care of
> several tweaks and get everything working.
> Hal
##-----------------------------------------------#
Article posted with Web Developer's USENET Archiv
http://www.1-script.com/forum
no-spam read and post WWW interface to your favorite newsgroup -
comp.lang.perl.misc - 36524 messages and counting
##-----------------------------------------------##