cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Password Base type encryption and decryption

PV_11029084
3-Newcomer

Password Base type encryption and decryption

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?

ACCEPTED SOLUTION

Accepted Solutions
VladimirRosu
19-Tanzanite
(To:Rocko)

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

View solution in original post

2 REPLIES 2

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.

VladimirRosu
19-Tanzanite
(To:Rocko)

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

Announcements


Top Tags