Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
# assumes that previous encryption created the "result" variable # result=$(./bin/js7_encrypt.sh --cert=agent.crt --infile=/tmp/secret.txt --outfile=/tmp/secret.txt.encrypted) ./bin/js7_decrypt.sh \ --key=agent.key \ --in="$result" \ --infile=$(echo "${result}" | cut -d' ' -f 3) \ --outfile=/tmp/secret.txt.decrypted cat /tmp/secret.txt.decrypted # decrypts the given encrypted file using an Agent's private key # specifies the path to the encrypted input file from the result of encryption # creates the decrypted output file |
...
Resources
Overview
Content Tools