docker pull ploufs/webencryptor:latest
ASPNETCORE_HTTP_PORTS -> 8080 OpenApiEnabled -> true,false ScalarEnabled -> true,false
/app/PGPPublicKey -> pgp public key folder
docker run -d --name=webencryptor -e TZ=America/Toronto -e OpenApiEnabled=true -e ScalarEnabled=true -p 8080:8080 -v C:\PGPPublicKey:/app/PGPPublicKey ploufs/webencryptor:latest
openapi : http://localhost:8080/openapi/v1.json scalar: http://localhost:8080/scalar/v1
curl https://localhost:8080/PGPEncrypt --request POST --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'filenamePublicKey={{publickey}}' --data-urlencode 'text={{text}}'
message_chiffre=$(curl -s -F "filenamePublicKey={{publickey}}" -F "text={{text}}" https://localhost:8080/PGPEncrypt);