# Try old encryption scheme
exec age --decrypt -i ./identity -o - encrypted
stdout 'Hello Old Encryption'
stderr 're-encrypt'

# Encrypt with old recipient
exec age --encrypt -R ./recipient -o old-recipient-out input
stderr 'please convert'
exec age --decrypt -i ./identity -o - old-recipient-out
stdout 'Hello World'

-- input --
Hello World
-- identity --
AGE-PLUGIN-TPM-1QYQQQKQQYVQQKQQZQPEQQQQQZQQPJQQTQQPSQYQQYZVAVTU4L9CNF9XTXG4Q53L0X7M023HDQPJP4KSN43H6KNYRD3TR7QPQPKSLWWASGJGJZJDDSGUS9WPR2UGGF7VTXQDP4QNWMUZZWW33PMLQQLSQYQ2UTHJ7M64D5DMSYP3U4YYHH56AQW2FEF535SPLK4SE70S5U68FWQQS89R9UL8ZE3ST8XJWSDZTVQMZ8M5T0QRP3ZAF9YS0XN0XUW5WKUFNDEMTLESC8XXJ6TAR3VJ49Y8A70FVE5HH6D8K25M5XREZDNUNXWZSZ0KSLPSVNR2GPDJ7PML2324UNU6E8TUD22K78VCLUTUNSS
-- recipient --
age1tpm1q2vavtu4l9cnf9xtxg4q53l0x7m023hdqpjp4ksn43h6knyrd3tr78cwcjw
-- encrypted --
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHRwbS1lY2MgWURybkl3IEFrV0tRVFpq
YXVyRW8vQVV0amNxczV2SUpJWW1JWmZvbFlIa3BkeUZUV1NyCklmTXRQWkJoUjVj
ZlBVQjZ6ZXVPTTlLN25XYTJQOHdxeUtHS2pYblNtSkUKLS0tIHNwUGpYeUIzYmV2
MXQralk1V0xRcnhDLzFtVXBnNE44Q2d6VXZWeWorVVUKWrE651o8KKRpWWH11lha
ACKbtqsXbBPwooZ25UKGxR/Iqoe+uIYJANebVJS5oP81N3IbXh8=
-----END AGE ENCRYPTED FILE-----
