Skip to content

Sometimes fails to encrypt json #2

@iargue

Description

@iargue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions