Skip to content

Commit

Permalink
Fix encoder for signing key
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders committed Feb 17, 2022
1 parent b385056 commit 98e0438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consoleme/lib/crypto.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from nacl.encoding import Base64Encoder
from nacl.encoding import Base64Encoder, RawEncoder
from nacl.exceptions import BadSignatureError
from nacl.signing import SigningKey, VerifyKey

Expand Down Expand Up @@ -30,7 +30,7 @@ def load_secrets(self) -> None:
msg = "Unable to load signing key"
log.error(msg, exc_info=True)
raise Exception(msg)
self.signing_key = SigningKey(signing_key_bytes, encoder=Base64Encoder)
self.signing_key = SigningKey(signing_key_bytes, encoder=RawEncoder)
verifying_key_file = config.get("ed25519.verifying_key")
try:
with open(verifying_key_file, "rb") as verifying_file:
Expand Down

0 comments on commit 98e0438

Please sign in to comment.