Encryption - Partial Implementation 

Fixed some of the previously implemented functions