Skip to content

Commit

Permalink
Merge pull request #20 from nsklikas/feature-backwards-keys
Browse files Browse the repository at this point in the history
Allow key passthrough
  • Loading branch information
rohe authored May 19, 2022
2 parents 71ba659 + fbc0260 commit d0466d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/idpyoidc/encrypter.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def init_encrypter(conf: Optional[dict] = None):
_kwargs[usage] = _key[0].key
else:
_kwargs[usage] = os.urandom(16)
elif "key" in _cargs:
_kwargs = {"key": _cargs["key"]}
else:
_kwargs = {
usage: _cargs.get(usage, os.urandom(16)) for usage in ["password", "salt"]
Expand Down

0 comments on commit d0466d4

Please sign in to comment.