{"id":19666611,"url":"https://github.com/xaionaro-go/trezorluks","last_synced_at":"2026-03-10T11:07:26.481Z","repository":{"id":71637240,"uuid":"136717905","full_name":"xaionaro-go/trezorLuks","owner":"xaionaro-go","description":"A wrapper around \"cryptsetup\" to use a key from a Trezor device instead of a password","archived":false,"fork":false,"pushed_at":"2019-09-01T11:20:30.000Z","size":13,"stargazers_count":21,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-17T14:42:04.248Z","etag":null,"topics":["cryptsetup","encrypt","fs","luks","trezor"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xaionaro-go.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":"2018-06-09T11:36:08.000Z","updated_at":"2025-02-14T13:51:29.000Z","dependencies_parsed_at":"2023-05-13T03:00:15.349Z","dependency_job_id":null,"html_url":"https://github.com/xaionaro-go/trezorLuks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xaionaro-go/trezorLuks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2FtrezorLuks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2FtrezorLuks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2FtrezorLuks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2FtrezorLuks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xaionaro-go","download_url":"https://codeload.github.com/xaionaro-go/trezorLuks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xaionaro-go%2FtrezorLuks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["cryptsetup","encrypt","fs","luks","trezor"],"created_at":"2024-11-11T16:28:19.153Z","updated_at":"2026-03-10T11:07:26.465Z","avatar_url":"https://github.com/xaionaro-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"This's a simple utility that uses option `--key-file` of `cryptsetup` to use a key generated by a Trezor device instead of a password. Also if you want to do that manually, you can use utility [trezorCipherKeyValue](https://github.com/xaionaro-go/trezorCipherKeyValue) instead of this one.\n\nInstall:\n```sh\ngo get github.com/xaionaro-go/trezorLuks\ngo install github.com/xaionaro-go/trezorLuks\n```\n\nExample:\n```sh\n`go env GOPATH`/bin/trezorLuks luksFormat /dev/loop0\n`go env GOPATH`/bin/trezorLuks luksOpen /dev/loop0 mySecureStorage\n```\n\nWith a custom key (default key name is \"luks\"):\n```sh\n`go env GOPATH`/bin/trezorLuks --trezor-key-name myKey luksFormat /dev/loop0\n`go env GOPATH`/bin/trezorLuks luksOpen /dev/loop0 mySecureStorage\n```\n\nPassing an option to cryptsetup:\n```sh\n`go env GOPATH`/bin/trezorLuks -- --verbose luksOpen /dev/loop0 mySecureStorage\n```\n\nSession example:\n```sh\n$ sudo ./trezorLuks luksFormat /dev/loop0\nSent the request to the Trezor device (please confirm the operation if required)\nRunning: cryptsetup [--key-file - luksFormat /dev/loop0]\n\n$ sudo ./trezorLuks luksOpen /dev/loop0 test\nSent the request to the Trezor device (please confirm the operation if required)\nRunning: cryptsetup [--key-file - luksOpen /dev/loop0 test]\n\n$ ls -ld /dev/mapper/test\nlrwxrwxrwx 1 root root 7 Jun  9 17:25 /dev/mapper/test -\u003e ../dm-0\n\n$ sudo ./trezorLuks luksClose test\nRunning: cryptsetup [luksClose test]\n\n$ ls -ld /dev/mapper/test\nls: cannot access '/dev/mapper/test': No such file or directory\n```\n\nSee also:\n* [trezorCipherKeyValue](https://github.com/xaionaro-go/trezorCipherKeyValue)\n\nOther projects (to encrypt FS using Trezor):\n* [gocryptfs](https://github.com/rfjakob/gocryptfs/pull/243)\n\nDocumentation:\n* [LUKS On-Disk Format Specification Version 1.0](http://clemens.endorphin.org/LUKS-on-disk-format.pdf)\n* [SLIP-0011 : Symmetric encryption of key-value pairs using deterministic hierarchy](https://github.com/satoshilabs/slips/blob/master/slip-0011.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaionaro-go%2Ftrezorluks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxaionaro-go%2Ftrezorluks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaionaro-go%2Ftrezorluks/lists"}