Update crypt method.