Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't overload primitives #173

Merged
merged 1 commit into from
Nov 16, 2024
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