Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes fails to encrypt json #2

Open
iargue opened this issue Sep 5, 2013 · 0 comments
Open

Sometimes fails to encrypt json #2

iargue opened this issue Sep 5, 2013 · 0 comments

Comments

@iargue
Copy link

iargue commented Sep 5, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant