mirror of
https://github.com/FiloSottile/age.git
synced 2026-03-11 08:55:41 +00:00
13 lines
364 B
Text
13 lines
364 B
Text
# https://github.com/FiloSottile/age/discussions/428
|
|
# encrypt and decrypt a file with an Ed25519 key encoded with PKCS#8
|
|
age -e -i key.pem -o test.age input
|
|
age -d -i key.pem test.age
|
|
cmp stdout input
|
|
! stderr .
|
|
|
|
-- input --
|
|
test
|
|
-- key.pem --
|
|
-----BEGIN PRIVATE KEY-----
|
|
MC4CAQAwBQYDK2VwBCIEIJT4Wpo+YG11yybKL/bYXQW7ekz4PAsmV/4tfmY1vU7x
|
|
-----END PRIVATE KEY-----
|