Skip to content

Instantly share code, notes, and snippets.

@gboudreau
Created March 18, 2016 13:55
Show Gist options
  • Save gboudreau/4570ffa46d32e5da2886 to your computer and use it in GitHub Desktop.
Save gboudreau/4570ffa46d32e5da2886 to your computer and use it in GitHub Desktop.
Nissan Connect API encryption using Javascript
<script src="http://sladex.org/blowfish.js/ext/blowfish.js"></script>
<script>
var password = 'a';
var key = 'uyI5Dj9g8VCOFDnBRUbr3g';
var encrypted_password = blowfish.encrypt(password, key, {cipherMode: 0, outputType: 0});
console.log("Encrypted password: " + encrypted_password);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment