Permalink
Browse files

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

  • Loading branch information...
1 parent 76227c5 commit 64a8d703ad419d864e764f54138794018258c91d @kriskowal kriskowal committed Mar 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/base16.js
View
@@ -9,7 +9,7 @@ var struct = require('struct');
exports.encode = function (n) {
var length = n.length;
var result = [];
- var alphabet = struct.alphabet16Lower;
+ var alphabet = struct.alphabet16Upper;
for (var i = 0; i < length; i++) {
n[i] = n[i] & 0xFF;
result.push(alphabet[(n.charCodeAt(i) >>> 4) & 0xF], alphabet[n.charCodeAt(i) & 0xF]);

0 comments on commit 64a8d70

Please sign in to comment.