Near-bugfix

- b64 padding is still off
- Removed unused functions
- Replaced functions by more binary patterns