2 # Desc: Checks if string is an age-compatible public key string
4 # Desc: Checks if string is an age-compatible pubkey
5 # Usage: checkAgePubkey [str pubkey]
8 # Output: return code 0: string is age-compatible pubkey
9 # return code 1: string is NOT an age-compatible pubkey
10 # Depends: age (v0.1.0-beta2; https://github.com/FiloSottile/age/releases/tag/v1.0.0-beta2 )
14 if echo "test" | age
-a -r "$argPubkey" 1>/dev
/null
; then