This file contains hidden or 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
// Fixed an error with character replacement, removed a dependency, included imports, throw errors, and fixed global variables | |
var crypto = require('crypto'); | |
//remove a dependency on b64url | |
function atob(str) { | |
return new Buffer(str, 'base64').toString('binary'); | |
} | |
//this is not used here, but to leave it out would be like passing the salt without the pepper. | |
function btoa(str) { |