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

url_safe Does not work #35

Closed
gachikuku opened this issue Nov 23, 2024 · 1 comment
Closed

url_safe Does not work #35

gachikuku opened this issue Nov 23, 2024 · 1 comment

Comments

@gachikuku
Copy link

gachikuku commented Nov 23, 2024

Describe the bug
When using from_base64(url_safe=True) an error is thrown.

To Reproduce
Simply run the script found here: https://github.com/securisec/chepy/blob/master/docs/examples.md#recipe-5-google-ei-timestamp

Expected behavior
I don't expect an error.

Screenshots
chepy

Desktop (please complete the following information):

  • OS: Macos ARM (Darwin base.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:25 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6030 arm64)
  • Python 3.12.7
  • chepy 7.2.0

Additional context

@gachikuku gachikuku changed the title url_safe Does not work. url_safe Does not work Nov 23, 2024
@securisec
Copy link
Owner

The url_safe argument was deprecated. The correct convention is alphabet='url_safe'.

https://chepy.readthedocs.io/en/latest/chepy.html?highlight=from_base64#chepy.Chepy.from_base64

from chepy import Chepy

c = Chepy('aGVsbG8')

c.from_base64(alphabet='url_safe')

print(c)
# prints hello

securisec added a commit that referenced this issue Nov 23, 2024
🐙 update docs to reflect new changes to from_base65. References #35
✨ use CHEPY_PLUGINS envar to enable or disable plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants