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