3

I want to run following CURL on Linux but with password in encryption form. How would I do that?

curl -u admin:password -X GET http://52.16.70.0:8081/artifactory/api/system/ping

I have generated encrypted password using openssl and base64 and those method seems hashes the inputs and not actually encrypt it.

Any help?

theonlygusti
  • 11,032
  • 11
  • 64
  • 119
mansing shinde
  • 445
  • 7
  • 25

1 Answers1

0

In order to have any sort of encryption you need to be using TLS.

See this answer:

https://stackoverflow.com/a/41456908/623541

For an example on how to use TLS see this answer:

https://superuser.com/a/976171/215214

Fred
  • 1,054
  • 1
  • 12
  • 32