Use the Docker Base Image Embedded with sops
This guide can help you to install as a binary or build using golang
gpg --batch --generate-key <<EOF
%echo Generating MyGPG Key
Key-Type: RSA
Key-Length: 2048
Subkey-Type: RSA
Subkey-Length: 2048
Name-Real: MY
Name-Comment: MYEncryption Secret
Name-Email: [email protected]
Expire-Date: 0
%no-ask-passphrase
%no-protection
%commit
%echo done
EOF
Public Key
gpg --armor --output my-public.asc --export [email protected]
Private Key
gpg --armor --output my-private.asc --export-secret-keys [email protected]
Public Key
gpg --import my-public.asc
Private Key
gpg --allow-secret-key-import --import my-private.asc
Encrypt
sops --verbose --output "file.sops.encrypt" --encrypt "file.plaintext
Decrypt
sops --verbose --output "file.sops.decrypt" --decrypt "file.plaintext"
- SOPS_PGP_FP
- GNUPGHOME
Want to contribute? Great!
- Raise MR's with additional Improvements