Created
March 18, 2016 13:55
-
-
Save gboudreau/4570ffa46d32e5da2886 to your computer and use it in GitHub Desktop.
Nissan Connect API encryption using Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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