support handover of cleartext and encrypted credentials, refactor naming of methods

This commit is contained in:
2021-06-15 23:13:18 +02:00
parent 1f55ef0a80
commit 91178b1fa7
4 changed files with 48 additions and 44 deletions

View File

@ -8,7 +8,7 @@ JWT_PRIV_KEY = os.environ["JWT_PRIV_KEY"]
class JweTestMethods(unittest.TestCase):
def test_encryptDecrypt(self):
inObj = {"key1":"value1", "key2":"value2"}
inObj = {"application":"test", "login":"wn", "password":"joshua"}
plainText = json.dumps(inObj)
cryptText = jwe.encrypt(plainText, JWT_PUB_KEY, "A256GCM", "RSA-OAEP")