File sync

This commit is contained in:
Joshua Granick
2015-03-23 10:46:08 -07:00
parent d867781970
commit 8414429433
3 changed files with 26 additions and 18 deletions

View File

@@ -183,15 +183,10 @@ class Sha256 {
function hex( a : Array<Int> ){
var str = "";
var hex_chr = "0123456789abcdef";
for( num in a ) {
var j = 7;
while( j >= 0 ) {
str += hex_chr.charAt( (num >>> (j<<2)) & 0xF );
j--;
}
str += StringTools.hex(num, 8);
}
return str;
return str.toLowerCase();
}
}