Skip to content

Sometimes fails to encrypt json #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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