{"id":34707683,"url":"https://github.com/aleph-im/signature-based-encryption","last_synced_at":"2026-04-22T01:02:48.938Z","repository":{"id":189148466,"uuid":"680137499","full_name":"aleph-im/signature-based-encryption","owner":"aleph-im","description":"A simple proof of concept of generating an AES CryptoKey using an EIP-712 signed payload","archived":false,"fork":false,"pushed_at":"2023-08-18T12:48:18.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-03-29T11:57:32.349Z","etag":null,"topics":["cryptography","encryption","ethereum"],"latest_commit_sha":null,"homepage":"https://bjrint.github.io/signature-based-encryption/","language":"TypeScript","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/aleph-im.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,"governance":null}},"created_at":"2023-08-18T12:36:03.000Z","updated_at":"2023-11-22T13:08:02.000Z","dependencies_parsed_at":"2023-08-18T14:11:51.062Z","dependency_job_id":null,"html_url":"https://github.com/aleph-im/signature-based-encryption","commit_stats":null,"previous_names":["bjrint/signature-based-encryption","aleph-im/signature-based-encryption"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aleph-im/signature-based-encryption","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph-im%2Fsignature-based-encryption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph-im%2Fsignature-based-encryption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph-im%2Fsignature-based-encryption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph-im%2Fsignature-based-encryption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleph-im","download_url":"https://codeload.github.com/aleph-im/signature-based-encryption/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph-im%2Fsignature-based-encryption/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32116514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cryptography","encryption","ethereum"],"created_at":"2025-12-24T23:31:54.989Z","updated_at":"2026-04-22T01:02:48.934Z","avatar_url":"https://github.com/aleph-im.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Signature Based Encryption\n\nThis repository is a simple proof of concept of generating an AES CryptoKey using an EIP-712 signed payload, to encrypt data without having to store the privateKey.\n\nThe underlying idea is that ECDSA signatures are deterministic but unpredictable making it a convenient way to generate key.\n\n## Workflow\n\n- \"Log in\" using Metamask or any other compatible wallet\n- Press the \u003ckbd\u003eGenerate Encryption Keypair\u003c/kbd\u003e button. This will sign a defined constant payload (set in [./src/helpers.ts](helpers.ts)).\n- The signed Buffer will then be hashed, using sha-256, generating a 256-bit digest.\n- The sha-256 digest is used as a raw input AES private key.\n- You can now encrypt/decrypt using your key\n\nIt is easy to further build upon that project to export the associated publicKey and use it as a generic file encryptor.\n\n## Disclaimer\n\n**This project is provided as is, without any warranty or security liability. Use it at your own risk.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleph-im%2Fsignature-based-encryption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleph-im%2Fsignature-based-encryption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleph-im%2Fsignature-based-encryption/lists"}