def encrypt_value(raw_value): salt = _gen_salt() return "%s$%s" % (salt, encrypt(raw_value, ENCRYPTION_KEY + salt))
def encrypt_value(raw_value): salt = _gen_salt() return "%s$%s" % (salt, encrypt(raw_value, ENCRYPTION_KEY+salt))