-
Notifications
You must be signed in to change notification settings - Fork 16
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
ekey includes $ since version 0.3 #18
Comments
? |
The dollar sign has been removed in 0.31. Please update to that. This will still decrypt older versions, including 0.3 (with dollar sign) and 0.2x (without dollar sign). |
Is there documentation available - general and for regex? |
Hi, In |
@jatinderjit, can you look at this please. |
Without this if, keys from version 0.2.0 are also correctly evaluated in 0.3.X.
Keys from version 0.2.0 return the wrong version in line 84. |
Any updates here? |
Hey @wittfabian, sorry for such a late response. If I understood correctly:
If this is what you are trying to do, then I couldn't reproduce it. SECRET_KEY = "34v*r6xdx^4o0_je66&yp48934&p77d3!dvy-8(s(ear3x1yvr"
encode(123, "abc") == "GOX-Z9nNStjer4tMHaeKZw" # Version 0.2.0
encode(123, "abc") == "$F7joJ5OUm1IfKyfjBaO2TA" # Version 0.3.0
encode(123, "abc") == "Rrh_U6BkP01CMZ3r1vYZZQ" # Version 0.3.1, 0.3.2, 0.3.3
decode("GOX-Z9nNStjer4tMHaeKZw", "abc") == 123 # all versions
decode("$F7joJ5OUm1IfKyfjBaO2TA", "abc") == 123 # Version 0.3.0+
decode("Rrh_U6BkP01CMZ3r1vYZZQ", "abc") == 123 # Version 0.3.1+ Each version should be able to decode the keys generated by the previous versions. |
Hello,
I updated to version 0.3 today.
Since then, the ekey has a $ at the beginning.
Example: $C8qooWqMNv8aC2Zrnl7j1A
Python: 2.7
Django: 1.11
django-encrypted-id: 0.3.0
The text was updated successfully, but these errors were encountered: