blowfish.js icon indicating copy to clipboard operation
blowfish.js copied to clipboard

Sometimes fails to encrypt json

Open iargue opened this issue 12 years ago • 0 comments

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

iargue avatar Sep 05 '13 01:09 iargue