mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-02 20:58:38 -04:00
Building tests for the tasks class
This commit is contained in:
@@ -10,7 +10,8 @@ class Encryption:
|
||||
self.salt = app.config.get('DANGEROUS_SALT')
|
||||
|
||||
def encrypt(self, thing_to_encrypt):
|
||||
return self.serializer.dumps(thing_to_encrypt, self.salt)
|
||||
return self.serializer.dumps(thing_to_encrypt, salt=
|
||||
self.salt)
|
||||
|
||||
def decrypt(self, thing_to_decrypt):
|
||||
return self.serializer.loads(thing_to_decrypt, salt=self.salt)
|
||||
|
||||
Reference in New Issue
Block a user