4 ms·
Is there a way to encrypt a file with a Yubikey? I want to encrypt a GitLab token in a file that can only be decrypted when I tap my Yuibkey. Maybe I’m just bei
by goodoldneon 5y ago
Is there a way to encrypt a file with a Yubikey? I want to encrypt a GitLab token in a file that can only be decrypted when I tap my Yuibkey. Maybe I’m just being dumb, but I haven’t found a straightforward way to do it
- lokedhs 5y agoWith GPG you typically use assymetric cryptography, so you would be using the public key of the recipient, so you don't need the yubikey for that. However, the yubikey can be used when decrypting the message later.
- psanford 5y agorage + age-plugin-yubikey: https://github.com/str4d/age-plugin-yubikey https://github.com/str4d/age-plugin-yubikey
- cuu508 5y agoCovered by the guide: see https://github.com/drduh/YubiKey-Guide#using-keys https://github.com/drduh/YubiKey-Guide#using-keys and look for "Encrypt a message to your own key". Also, sops (https://github.com/mozilla/sops https://github.com/mozilla/sops) works with gpg and so with Yubikeys.
- eknkc 5y agoI wanted to do it when I first got one. It is possible but weird and not in any way straightforward.