Ruby code created to help with some basic cryptographic calculations.