Revert ""

This reverts commit 77711a710c54feb8677e25cd0e939f945af5d3db.
Added loops to the encoding section of the code, this will increase the
probability that this won't be cracked