Skip to content
This repository
Browse code

Revised default radix encoding base16 to favor upper-case senidenary.

  • Loading branch information...
commit 64a8d703ad419d864e764f54138794018258c91d 1 parent 76227c5
Kris Kowal authored February 28, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/base16.js
2  lib/base16.js
@@ -9,7 +9,7 @@ var struct = require('struct');
9 9
 exports.encode = function (n) {
10 10
     var length = n.length;
11 11
     var result = [];
12  
-    var alphabet = struct.alphabet16Lower;
  12
+    var alphabet = struct.alphabet16Upper;
13 13
     for (var i = 0; i < length; i++) {
14 14
         n[i] = n[i] & 0xFF;
15 15
         result.push(alphabet[(n.charCodeAt(i) >>> 4) & 0xF], alphabet[n.charCodeAt(i) & 0xF]);

0 notes on commit 64a8d70

Please sign in to comment.
Something went wrong with that request. Please try again.