Skip to content

Instantly share code, notes, and snippets.

@neverkas
Created June 4, 2023 22:16
Show Gist options
  • Save neverkas/6e157871e438b20c6bf5b1a703cdc5d3 to your computer and use it in GitHub Desktop.
Save neverkas/6e157871e438b20c6bf5b1a703cdc5d3 to your computer and use it in GitHub Desktop.
basic gpg encript/decrypt
SECRETO_FILE=secreto.txt
SECRETO_ENCRYPTED=$(SECRETO_FILE).gpg
# debe tener la funcionalidad de [E]ncriptar (encrypt capability)
ID_GPG_KEY=0x373250B7E54E64CC
encriptar:
gpg --recipient=$(ID_GPG_KEY) --encrypt $(SECRETO_FILE)
desencriptar:
gpg --local-user=$(ID_GPG_KEY) --decrypt $(SECRETO_ENCRYPTED)
info:
pgpdump $(SECRETO_ENCRYPTED)
clean:
rm --verbose $(SECRETO_ENCRYPTED)
.PHONY: clean encriptar desencriptar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment