{"id":13632453,"url":"https://github.com/nulltea/tlock-rs","last_synced_at":"2026-03-06T17:05:09.837Z","repository":{"id":60752282,"uuid":"544015374","full_name":"nulltea/tlock-rs","owner":"nulltea","description":"Rust library for practical time-lock encryption using `drand` threshold network","archived":false,"fork":false,"pushed_at":"2022-12-24T12:17:59.000Z","size":21,"stargazers_count":41,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-09T02:16:06.750Z","etag":null,"topics":["cryptography","drand","encryption","timelock","tlock"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nulltea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-01T12:15:20.000Z","updated_at":"2025-07-18T16:39:27.000Z","dependencies_parsed_at":"2023-01-30T20:35:10.688Z","dependency_job_id":null,"html_url":"https://github.com/nulltea/tlock-rs","commit_stats":null,"previous_names":["nulltea/tlock-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nulltea/tlock-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulltea%2Ftlock-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulltea%2Ftlock-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulltea%2Ftlock-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulltea%2Ftlock-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nulltea","download_url":"https://codeload.github.com/nulltea/tlock-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulltea%2Ftlock-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30186780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"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","drand","encryption","timelock","tlock"],"created_at":"2024-08-01T22:03:03.668Z","updated_at":"2026-03-06T17:05:04.821Z","avatar_url":"https://github.com/nulltea.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# tlock-rs: Practical Timelock Encryption/Decryption in Rust\n\nThis repo contains pure Rust implementation of [`drand/tlock`](https://github.com/drand/tlock) scheme. It provides time-based encryption and decryption capabilities by relying on a [drand](https://drand.love/) threshold network and identity-based encryption (IBE). The IBE scheme implemented here is [`Boneh-Franklin`](https://crypto.stanford.edu/~dabo/papers/bfibe.pdf).\n\n## Usage\nThe tlock system relies on an unchained drand network. Working endpoints to access it are, for now:\n- https://pl-us.testnet.drand.sh/\n- https://testnet0-api.drand.cloudflare.com/\n\n### Lock file for given duration\n```bash\ncargo run -- lock -o test_lock.pem -d 30s test.txt\n```\n\n### Lock file for drand round\n```bash\ncargo run -- lock -o test_lock.pem -r 1000 test.txt\n```\n\n### Attempt unlocking file\n```bash\ncargo run -- unlock -o test_unlock.txt test_lock.pem\n```\n\nError `Too early` will appear, if one tries to unlock a file before the specified round is reached.\n\n## Known issues\n- API currently supports 32 bytes of plaintext\n- Cross-library decryption hasn't been verified\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulltea%2Ftlock-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnulltea%2Ftlock-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulltea%2Ftlock-rs/lists"}