// Base 16 (hex) and base 4 import {Random, Entropy, charSet16, charSet4} from './entropy-string' const random = new Random(charSet16) const bits = Entropy.bits(30, 100000) let string = random.string(bits) console.log('\n Base 16 string : ' + string) random.use(charSet4) string = random.string(bits) console.log('\n Base 4 string : ' + string + '\n')