wrote crypto code