Skip to content

Commit

Permalink
Merge pull request travist#4 from zoloft/master
Browse files Browse the repository at this point in the history
Removed atob function for IE compatibility
  • Loading branch information
travist committed Aug 9, 2013
2 parents 2e6ab65 + e69e798 commit 6e4f410
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
project.properties
project.xml
11 changes: 2 additions & 9 deletions src/jsencrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,7 @@ RSAKey.prototype.parseKey = function(keyString) {
* Add a char64toHex method.
*/
RSAKey.prototype.char64ToHex = function(str) {
var hex = '';
str = atob(str);
for (var i = 0; i < str.length; ++i) {
var tmp = str.charCodeAt(i).toString(16);
if (tmp.length === 1) tmp = "0" + tmp;
hex += tmp;
}
return hex;
return b64tohex(str);
};

/**
Expand Down Expand Up @@ -362,4 +355,4 @@ JSEncrypt.prototype.getPublicKey = function() {

// Return the private representation of this key.
return this.pubkey.getPublicKey();
};
};

0 comments on commit 6e4f410

Please sign in to comment.