Add encrypt function example