import signer
key = "super private key"
signature = signer.sign(key, a="data", b="more data")
signature1 = signer.sign(key, b="more data", a="data")
assert signature == signature1
signed_url = signer.sign_url(key, url="http://www.example.com/api/v8/clones?give=2", valid_for_sec=600)
assert signer.verify_url(key, url=signed_url)
-
Notifications
You must be signed in to change notification settings - Fork 0
The simple way to sign url
License
Kaminario/url-signer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The simple way to sign url
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published