Slice a binary number into groups of five digits
问题 Is there any neat trick to slice a binary number into groups of five digits in python? '00010100011011101101110100010111' => ['00010', '00110', '10111', ... ] Edit: I want to write a cipher/encoder in order to generate "easy to read over the phone" tokens. The standard base32 encoding has the following disadvantages: Potential to generate accidental f*words Uses confusing chars like chars like 'I', 'L', 'O' (may be confused with 0 and 1) Easy to guess sequences ("AAAA", "AAAB", ...) I was