// Find type of entropy being used (binary, hex, dice etc)
var base = getBase(rawEntropyStr);
// Convert dice to base6 entropy (ie 1-6 to 0-5)
// Find type of entropy being used (binary, hex, dice etc)
var base = getBase(rawEntropyStr);
// Convert dice to base6 entropy (ie 1-6 to 0-5)
if (base.str == "dice") {
var newRawEntropyStr = "";
for (var i=0; i<rawEntropyStr.length; i++) {
var c = rawEntropyStr[i];
if (base.str == "dice") {
var newRawEntropyStr = "";
for (var i=0; i<rawEntropyStr.length; i++) {
var c = rawEntropyStr[i];