Initial commit with encrypt function