Add encrypt() function and salt() function