Example #1
0
def encrypt_value(raw_value):
    salt = _gen_salt()
    return "%s$%s" % (salt, encrypt(raw_value, ENCRYPTION_KEY + salt))
Example #2
0
def encrypt_value(raw_value):
    salt = _gen_salt()
    return "%s$%s" %  (salt, encrypt(raw_value, ENCRYPTION_KEY+salt))