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
// This is a modification of jsencrypt.js from https://github.com/travist/jsencrypt | |
// It has been modified to remove all accesses to window and navigator to be | |
// able to use it together with Google Apps Scripts where these properties does not | |
// exist. | |
// | |
// The only intended use of this code is to sign messages using a public key. It | |
// is done like this: | |
// | |
// var encrypt = new JSEncrypt(); | |
// encrypt.setPublicKey(publicKey); |