update encrypt,decrypt spec