Updated base32-alphabets library - Encode / decode numbers in 5-bit groups (2^5=32)
Hello, I’ve updated the base32-alphabets library that lets you encode / decode numbers in 5-bit groups (2^5=32) with Kai, Crockford or Electrologica notation / alphabet (e.g. break down the 240-bit CryptoKitties genome into 12 groups of 4 (x 5-bit) genes, for example). What’s news in 1.1? You can use byte arrays for encode / decode too or use Base32.bytes
to get all 5-bit chunks as an (integer) byte array. Happy unique bits & bytes slicing off the (block)chain with ruby.
Post a comment