Implemented encryption algorithm