I have a (php) array of blowfish encrypted data posted from a form-submit. I have a blowfish algorithm in javascript.
var bf = new Blowfish('12345678901234567');
var ciphertext = bf.encrypt('test data');
alert(ciphertext);
var plaintext = bf.decrypt(ciphertext);
alert(plaintext);
I need to use this javascript blowfish code to decrypt the array of data and save the decrypted data in database.
How can I do this? Can the decrypted value from javascript be assigned to a php variable? Pleas Help...