Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/cryptojwt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def b64d(b):
return base64.urlsafe_b64decode(b)


def b64e_enc_dec(str, encode="utf-8", decode="ascii"):
return b64e(str.encode(encode)).decode(decode)
def b64e_enc_dec(datastr, encode="utf-8", decode="ascii"):
return b64e(datastr.encode(encode)).decode(decode)


def b64d_enc_dec(str, encode="ascii", decode="utf-8"):
return b64d(str.encode(encode)).decode(decode)
def b64d_enc_dec(datastr, encode="ascii", decode="utf-8"):
return b64d(datastr.encode(encode)).decode(decode)


def as_bytes(s):
Expand Down