The latter is quite hard to decrypt with Keybase. I tried numerous ways of getting this decrypted (e.g. piping with base64 -d, etc) and it seems the only way to get it done is to wrap the string with the header. It applies both to keybase pgp decrypt and https://keybase.io/decrypt.
It'd be great if Keybase could automatically wrap the encrypted message with the header to avoid the hassle of doing it manually. (Or having to pass multi-line strings that are error-prone when pasting around)
Checking in a couple years later - this still seems like a problem, specifically for inline decryption and for the terraform use case mentioned by OP. Is there any update or workaround available?
Many tools that output PGP messages (e.g. Terraform's aws_iam_access_key) skip the header. Rather than printing this:
They'll print this instead:
The latter is quite hard to decrypt with Keybase. I tried numerous ways of getting this decrypted (e.g. piping with
base64 -d
, etc) and it seems the only way to get it done is to wrap the string with the header. It applies both tokeybase pgp decrypt
and https://keybase.io/decrypt.It'd be great if Keybase could automatically wrap the encrypted message with the header to avoid the hassle of doing it manually. (Or having to pass multi-line strings that are error-prone when pasting around)