{"id":24738630,"url":"https://github.com/zweifisch/signer","last_synced_at":"2025-03-22T18:42:48.574Z","repository":{"id":15845261,"uuid":"18585329","full_name":"zweifisch/signer","owner":"zweifisch","description":"a python module for message signing","archived":false,"fork":false,"pushed_at":"2014-04-09T07:37:41.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T06:47:49.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zweifisch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-09T04:36:45.000Z","updated_at":"2014-04-09T07:37:41.000Z","dependencies_parsed_at":"2022-09-26T20:32:00.818Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/signer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fsigner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fsigner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fsigner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fsigner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/signer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245006615,"owners_count":20546136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-27T22:55:06.665Z","updated_at":"2025-03-22T18:42:48.552Z","avatar_url":"https://github.com/zweifisch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# signer\n\n```python\nfrom signer import Signer\nfrom datetime import datetime, timedelta\n\nsigner = Signer(b'secret key')\n\ntomorrow = datetime.utcnow() + timedelta(days=1)\nsigned_message = signer.sign(b'message', expires=tomorrow)\n\nsigner.verify(signed_message)\n```\n\n* signed message is not encrypted\n* if the signature failed the verification, verify() returns `None`\n* if expired, verfiy() returns `None`\n\nsigning as json and tuple\n\n```python\nsigner.sign_json(dict(key=\"value\"))\n\nsigner.sign_record(['some', b'msg'], expires=tomorrow)\n\nsigner.sign(obj, encoder=encode_fn)\nsigner.verify(signed_bytes, decoder=decode_fn)\n```\n\nspecify hash method\n\n```python\nSigner(method='sha1', digest_size=20)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fsigner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fsigner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fsigner/lists"}