是否可以将javascript值分配给php变量?
我有一个(PHP)数组的河豚加密数据从表单提交发布。我在javascript中有一个blowfish算法。
var bf = new Blowfish('12345678901234567');
var ciphertext = bf.encrypt('test data');
alert(ciphertext);
var plaintext = bf.decrypt(ciphertext);
alert(plaintext);
我需要使用这个javascript blowfish代码来解密数据数组并将解密的数据保存在数据库中。
我怎样才能做到这一点?可以将来自javascript的解密值分配给php变量吗?
请帮助......
没有找到相关结果
已邀请:
3 个回复
拈吉勉犬姆
你不能做相反的事(你问的是什么)。 你想做什么?也许我们可以帮助你。
拟蓬
功能。 http://php.net/manual/en/function.crypt.php
吐兄