我有一个(php)从表单提交中发布的河豚加密数据数组。我在javascript中有一个河豚算法。
var bf = new Blowfish('12345678901234567');
var ciphertext = bf.encrypt('test data');
alert(ciphertext);
var plaintext = bf.decrypt(ciphertext);
alert(plaintext);
我需要使用这个javascript河豚代码来解密数据数组并将解密的数据保存在数据库中。
我怎样才能做到这一点?可以将来自 javascript 的解密值分配给 php 变量吗?请帮助...