def do_crypt_parameters_and_properties():
 ctxt = context.get_admin_context()
 prev_encryption_key = CONF.command.previous_encryption_key
 if (CONF.command.crypt_operation == 'encrypt'):
  db_api.encrypt_parameters_and_properties(ctxt, prev_encryption_key, CONF.command.verbose_update_params)
 elif (CONF.command.crypt_operation == 'decrypt'):
  db_api.decrypt_parameters_and_properties(ctxt, prev_encryption_key, CONF.command.verbose_update_params)

def do_crypt_parameters_and_properties ( ) : ctxt = context . get_admin_context ( ) prev_encryption_key = CONF . command . previous_encryption_key if ( CONF . command . crypt_operation == 'encrypt' ) : db_api . encrypt_parameters_and_properties ( ctxt , prev_encryption_key , CONF . command . verbose_update_params ) elif ( CONF . command . crypt_operation == 'decrypt' ) : db_api . decrypt_parameters_and_properties ( ctxt , prev_encryption_key , CONF . command . verbose_update_params )
encrypt/decrypt hidden parameters and resource properties data .