Created
June 4, 2023 22:16
-
-
Save neverkas/6e157871e438b20c6bf5b1a703cdc5d3 to your computer and use it in GitHub Desktop.
basic gpg encript/decrypt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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