The DataPrimitives package contains classes to convert between Data Primitives such as 'bit string', 'octet string' and 'integer' as defined and explained in ISO 18033 and PKCS#1.
The implementation created for educational purposes. No optimisations and "tricks" are used and is more easy to be read than optimal to use.
You may turn on detailed explanation mode by suppling a True argument to the main class. Examples included in the README.txt file.