Use functions to define the encryption method