blowfish.js
blowfish.js copied to clipboard
Sometimes fails to encrypt json
Ocassionally, the blowfish module will screw up a json request.
Example
var login = { username: "test1", password: "P@ssw0rd", gameid: '001' } var cipherlogin = bf.encrypt(JSON.stringify(login)); var plaintextlogin = bf.decrypt(cipherlogin) console.log(plaintextlogin)
Returns
{"username":"test1","password":"P@ssw0rd","gameid":"001"
missing the final } to close the json string.
I don't know if you update/check these anymore, but any help would be appreciated.
Using the marcelgreter branch