xaionaro-go / trezorLuks

A wrapper around "cryptsetup" to use a key from a Trezor device instead of a password
Creative Commons Zero v1.0 Universal
21 stars 6 forks source link

Support call cryptosetup by external Pipe #2

Closed petrkr closed 3 years ago

petrkr commented 6 years ago

Hi, nice project, I need this one and wanted do it already by trezor-python way. Just do not wanted put all python env to initramfs.

Can you do please some parameter that will only print key to stdout instead call cryptosetup directly? I want use it for full-disk-encryption and also want use Ubuntu-like cryptosetup where I can call external script for password, but can not call trezorLuks instead cryptosetup.

My idea is like you will call something like this:

trezorEnc --stdout --key "This will show on trezor's screen" | cryptosetup ....

My problem is I do not know Go well and if you already have this done, maybe it could be easy for you to do this revision.

Redards Petr

xaionaro commented 6 years ago

@petrkr I see, I'll do that soon (may be today or tomorrow) :)

xaionaro commented 6 years ago

@petrkr try this: https://github.com/xaionaro-go/trezorCipherKeyValue

trezorCipherKeyValue --key-name "This will show on trezor's screen" | cryptosetup ....
iamjenechka commented 6 years ago

insane cryptopunks $hit