Implemented custom cryptography module