home ~ socials ~ projects ~ rss

Encrypt And Decrypt Files On A Mac With GPG

December 2021

To encrypt a file, use:

/usr/local/bin/gpg --armor --encrypt --yes -r self@localhost.localdomain {FILE_PATH}

To decrypt a file use:

/usr/local/bin/gpg --decrypt {FILE_PATH}

_NOTE: I'm not sure if gpg is installed by default or if it's something from homebrew_

end of line
Share link:
https://www.alanwsmith.com/en/22/fv/ss/fy/?encrypt-and-decrypt-files-on-a-mac-with-gpg