All Projects → xaionaro-go → trezorLuks

xaionaro-go / trezorLuks

Licence: CC0-1.0 license
A wrapper around "cryptsetup" to use a key from a Trezor device instead of a password

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to trezorLuks

LUKS-OPs
A bash script to automate the most basic usage of LUKS volumes in Linux VPS
Stars: ✭ 30 (+50%)
Mutual labels:  luks, cryptsetup
Seedshift
Plausibly deniable steganographic encryption of BIP-39 mnemonic seed words with a date shift cipher
Stars: ✭ 21 (+5%)
Mutual labels:  trezor, encrypt
cryptctl
A disk encryption utility that helps setting up LUKS-based disk encryption using randomly generated keys, and keeps all keys on a dedicated key server.
Stars: ✭ 23 (+15%)
Mutual labels:  luks
go-storage
A vendor-neutral storage library for Golang: Write once, run on every storage service.
Stars: ✭ 387 (+1835%)
Mutual labels:  fs
unlock-luks-partition
Unlock a LUKS partition via SSH
Stars: ✭ 31 (+55%)
Mutual labels:  luks
vue-cryptojs
A small wrapper for integrating crypto-js into VueJS
Stars: ✭ 17 (-15%)
Mutual labels:  encrypt
udiskie-dmenu
Manage removable devices in couple of keystrokes!
Stars: ✭ 30 (+50%)
Mutual labels:  luks
pgspeck
Small block size Speck encryption in PostgreSQL
Stars: ✭ 16 (-20%)
Mutual labels:  encrypt
scripts
Collection of useful scripts for Linux (git, docker, LUKS, Archlinux...)
Stars: ✭ 36 (+80%)
Mutual labels:  luks
fu
Unix's Find, Unleashed.
Stars: ✭ 32 (+60%)
Mutual labels:  fs
unionfs
Use multiple fs modules at once
Stars: ✭ 170 (+750%)
Mutual labels:  fs
MGObfuscator
An easy encryptor / decryptor for iOS
Stars: ✭ 17 (-15%)
Mutual labels:  encrypt
tabfs-specs
Specifications for the tabfs filesystem (osdev) | Mirror of https://codeark.it/Chalk-OS/tabfs-specs
Stars: ✭ 15 (-25%)
Mutual labels:  fs
Trezor.Net
Cross platform C# library for talking to the Trezor hardwarewallet
Stars: ✭ 38 (+90%)
Mutual labels:  trezor
rxnode
Rxnode - a small and fast wrapper around the nodejs API using RxJS.
Stars: ✭ 24 (+20%)
Mutual labels:  fs
lua-simple-encrypt
Lua simple XOR encrypt
Stars: ✭ 60 (+200%)
Mutual labels:  encrypt
ansible-archlinux
Automated arch linux desktop environment
Stars: ✭ 56 (+180%)
Mutual labels:  luks
AdjustableMirrors
Adjustable mirrors mod for Farming Simulator 2019
Stars: ✭ 13 (-35%)
Mutual labels:  fs
secusu
SЁCU is a public API to store self-destructing data payloads with url shortener and handle anonymous chat-rooms.
Stars: ✭ 24 (+20%)
Mutual labels:  encrypt
MeowDB.js
Database in JSON (Node.JS Library)
Stars: ✭ 12 (-40%)
Mutual labels:  fs

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 instead of this one.

Install:

go get github.com/xaionaro-go/trezorLuks
go install github.com/xaionaro-go/trezorLuks

Example:

`go env GOPATH`/bin/trezorLuks luksFormat /dev/loop0
`go env GOPATH`/bin/trezorLuks luksOpen /dev/loop0 mySecureStorage

With a custom key (default key name is "luks"):

`go env GOPATH`/bin/trezorLuks --trezor-key-name myKey luksFormat /dev/loop0
`go env GOPATH`/bin/trezorLuks luksOpen /dev/loop0 mySecureStorage

Passing an option to cryptsetup:

`go env GOPATH`/bin/trezorLuks -- --verbose luksOpen /dev/loop0 mySecureStorage

Session example:

$ sudo ./trezorLuks luksFormat /dev/loop0
Sent the request to the Trezor device (please confirm the operation if required)
Running: cryptsetup [--key-file - luksFormat /dev/loop0]

$ sudo ./trezorLuks luksOpen /dev/loop0 test
Sent the request to the Trezor device (please confirm the operation if required)
Running: cryptsetup [--key-file - luksOpen /dev/loop0 test]

$ ls -ld /dev/mapper/test
lrwxrwxrwx 1 root root 7 Jun  9 17:25 /dev/mapper/test -> ../dm-0

$ sudo ./trezorLuks luksClose test
Running: cryptsetup [luksClose test]

$ ls -ld /dev/mapper/test
ls: cannot access '/dev/mapper/test': No such file or directory

See also:

Other projects (to encrypt FS using Trezor):

Documentation:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].