Skip to main content
3-Newcomer
June 5, 2024
Solved

Password Base type encryption and decryption

  • June 5, 2024
  • 1 reply
  • 995 views

I have a property with PASSWORD base type. Using the REST API the value fetched is encrypted. What is the encryption method that is used internally? Is it possible to get the original value and if yes then how to get it?

Best answer by VladimirRosu_116627

I would also suggest the last option, to retrieve it via a service with string output type.

1 reply

Rocko
19-Tanzanite
June 6, 2024

Interesting.

It only seems to be encrypted when you request a JSON reply, with XML it's in clear text, that's a bit inconsistent.

I suggest you create a case with PTC support and post an update here how this was resolved.

 

Correction: When you use application/json or text/xml in your Accept header, it is encrypted. It is not encrypted when you receive HTML, e.g. by using */* in the Accept header.

As a workaround you could add a service to your thing returning the password as a STRING and call the service from the REST API.

19-Tanzanite
June 7, 2024

I would also suggest the last option, to retrieve it via a service with string output type.