From: Sergey Matveev Date: Thu, 12 Oct 2023 09:51:39 +0000 (+0300) Subject: Use age for encryption, it is simpler X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=28ee61c29ea9dd81cfe71d0792811368e14f7e9f;hp=65748ed16e62255cb8c2242947a77254e7e46072;p=zeasypki.git Use age for encryption, it is simpler --- diff --git a/README b/README index 2389d94..745f2a9 100644 --- a/README +++ b/README @@ -27,7 +27,7 @@ to change path-variable setting, that points to GoGOST'es built utilities. * Optionally encrypt them (that also can be done with EE keypairs too): $ zeasypki encrypt ca/ecdsa/ecdsa-root.com - [GnuPG is invoked here] + [age is invoked here] $ print ca/ecdsa/ecdsa-root.com/* cer.pem key.pem.enc diff --git a/zeasypki b/zeasypki index 15586b4..7a579bf 100755 --- a/zeasypki +++ b/zeasypki @@ -4,7 +4,6 @@ set -e -KEY_ENCRYPT_RECIPIENT=${KEY_ENCRYPT_RECIPIENT:-12AD32689C660D426967FD75CB8205632107AD8A} COUNTRY=${COUNTRY:-RU} path=( @@ -14,11 +13,11 @@ path=( ) key_encrypt() { - gpg --encrypt --recipient $KEY_ENCRYPT_RECIPIENT + age -R ~/.age/general.pub } key_decrypt() { - gpg --decrypt + age -d -i ~/.age/general.age } # ------------------------ >8 ------------------------