Is there any neat trick to slice a binary number into groups of five digits in python?
\'00010100011011101101110100010111\' => [\'00010\', \'00110\', \'10111\', ... ]
Per your comments, you actually want base 32 strings.
>>> import base64 >>> base64.b32encode("good stuff") 'M5XW6ZBAON2HKZTG'