Skip to content

Commit

Permalink
Merge pull request #160 from silenceboychen/unicodeDecode
Browse files Browse the repository at this point in the history
add utf16le unicoding
  • Loading branch information
JoshKaufman committed May 29, 2018
2 parents eb71819 + f7b3f39 commit 7083023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ursa.js
Expand Up @@ -39,6 +39,9 @@ var STRING = "string";
/** encoding constant */
var UTF8 = "utf8";

/** encoding constant */
var UTF16 = "utf16le";

/** hash algorithm constant */
var MD5 = "md5";

Expand Down Expand Up @@ -160,6 +163,7 @@ function validateEncoding(encoding) {
case BASE64:
case BINARY:
case HEX:
case UTF16:
case UTF8: {
// These are all valid.
break;
Expand Down

0 comments on commit 7083023

Please sign in to comment.