crypt method