def encrypted_dict(data, encryption_key=None):
 return_data = {}
 if (not data):
  return return_data
 for (prop_name, prop_value) in data.items():
  prop_string = jsonutils.dumps(prop_value)
  encrypted_value = encrypt(prop_string, encryption_key)
  return_data[prop_name] = encrypted_value
 return return_data

def encrypted_dict ( data , encryption_key = None ) : return_data = { } if ( not data ) : return return_data for ( prop_name , prop_value ) in data . items ( ) : prop_string = jsonutils . dumps ( prop_value ) encrypted_value = encrypt ( prop_string , encryption_key ) return_data [ prop_name ] = encrypted_value return return_data
return an encrypted dict .