@echo off

@rem call .\bin\js7_encrypt.cmd "--cert=agent.crt" "--infile=%TEMP%\secret.txt" "--outfile=%TEMP%\secret.txt.encrypted"
 
call .\bin\js7_decrypt.cmd ^
    "--key=agent.key" ^
    "--in=%JS7_ENCRYPT_VALUE%" ^
    "--infile=%TEMP%\secret.txt.encrypted" ^
    "--outfile=%TEMP%\secret.txt.decrypted"
type %TEMP%\secret.txt.decrypted
