{"id":20640381,"url":"https://github.com/thibmeu/tlock-rs","last_synced_at":"2025-09-25T04:32:20.859Z","repository":{"id":131259645,"uuid":"610000813","full_name":"thibmeu/tlock-rs","owner":"thibmeu","description":"Rust encryption library for practical time-lock encryption.","archived":false,"fork":false,"pushed_at":"2024-07-19T09:37:50.000Z","size":127,"stargazers_count":29,"open_issues_count":4,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-09T04:13:21.148Z","etag":null,"topics":["age-encryption","cryptography","encryption","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/thibmeu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-05T21:16:45.000Z","updated_at":"2024-12-19T12:25:28.000Z","dependencies_parsed_at":"2023-12-17T21:24:57.276Z","dependency_job_id":"b30747a3-6127-486b-92d1-ef06c264ad2a","html_url":"https://github.com/thibmeu/tlock-rs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmeu%2Ftlock-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmeu%2Ftlock-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmeu%2Ftlock-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thibmeu%2Ftlock-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thibmeu","download_url":"https://codeload.github.com/thibmeu/tlock-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234152719,"owners_count":18787675,"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":["age-encryption","cryptography","encryption","tlock"],"created_at":"2024-11-16T15:29:09.107Z","updated_at":"2025-09-25T04:32:15.555Z","avatar_url":"https://github.com/thibmeu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tlock_age: Hybrid Timelock Encryption/Decryption in Rust\n\n[![Documentation](https://img.shields.io/badge/docs-main-blue.svg)][Documentation]\n![License](https://img.shields.io/crates/l/tlock_age.svg)\n[![crates.io](https://img.shields.io/crates/v/tlock_age.svg)][Crates.io]\n\n[Crates.io]: https://crates.io/crates/tlock_age\n[Documentation]: https://docs.rs/tlock_age/\n\ntlock_age is a library to encrypt and decrypt [age](https://github.com/C2SP/C2SP/blob/main/age.md) filekey using [tlock](https://eprint.iacr.org/2023/189) scheme. It provides an age Identity and Recipient consuming Threshold BLS signatures provided by [drand](https://drand.love/docs/specification/) beacons.\n\nThe reference interoperable Go implementation is available at [drand/tlock](https://github.com/drand/tlock).\n\n## Tables of Content\n\n* [Features](#features)\n* [Installation](#installation)\n* [Usage](#usage)\n* [Security Considerations](#security-considerations)\n* [FAQ](#faq)\n* [License](#license)\n\n## Features\n\n* Timelock encryption and decryption in the age format\n* ASCII Armor\n* tlock header decryption\n* Encryption with public key on G1 and G2\n* Interoperability with Go and JS implementation\n* wasm32 compatible library\n\n## Installation\n\n| Environment        | CLI Command               |\n|:-------------------|:--------------------------|\n| Cargo (Rust 1.74+) | `cargo install tlock_age` |\n\nThe library is tested against the following targets: `x86_64-unknown-linux-gnu`, `armv7-unknown-linux-gnueabihf`, `aarch64-unknown-linux-gnu`, `wasm32-wasi`.\n\n## Usage\n\nCode examples are provided in [tlock_age/examples](./tlock_age/examples).\n\nThe tlock system relies on [unchained drand networks](https://drand.love/docs/cryptography/#randomness).\n\nThis crate does not provide a drand client. You can use [drand_core](https://github.com/thibmeu/drand-rs).\n\n## Security Considerations\n\nThis software has not been audited. Please use at your sole discretion. With this in mind, dee security relies on the following:\n* [tlock: Practical Timelock Encryption from Threshold BLS](https://eprint.iacr.org/2023/189) by Nicolas Gailly, Kelsey Melissaris, and Yolan Romailler, and its implementation in [drand/tlock](https://github.com/drand/tlock),\n* [Identity-Based Encryption](https://crypto.stanford.edu/~dabo/papers/bfibe.pdf) by Dan Boneh, and Matthew Franklin, and its implementation in [thibmeu/tlock-rs](https://github.com/thibmeu/tlock-rs),\n* The chosen drand beacon to remain honest,\n* [age](https://github.com/C2SP/C2SP/blob/main/age.md) encryption protocol, and its implementation in [str4d/rage](https://github.com/str4d/rage),\n\n## FAQ\n\n### How does practical timelock encryption work\n\nFor the simple explanation, you can use [Handwaving Cryptography](./assets/handwaving-cryptography.md).\n\nFor a more detailed one, you should take time to read [tlock: Practical Timelock Encryption from Threshold BLS](https://eprint.iacr.org/2023/189) by Nicolas Gailly, Kelsey Melissaris, and Yolan Romailler.\n\n### How can I use it from the command line\n\nYou need a client. Clients using tlock-rs are\n* [dee](https://github.com/thibmeu/drand-rs)\n* [age-plugin-tlock](https://github.com/thibmeu/tlock-rs/age-plugin-tlock)\n\n## License\n\nThis project is under the MIT license.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be MIT licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibmeu%2Ftlock-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthibmeu%2Ftlock-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthibmeu%2Ftlock-rs/lists"}