Skip to main content
1-Visitor
Dec 10, 2021 6:04 AM UTC
Question

Convert Password to its corresponding string

Hi Team,

 

Just like we have service for converting from String to Password we have one service called EncryptPropertyValue, how we can convert from Password to String.

 

Please share the snippet.

 

Thanks in advance.

3 replies

24-Ruby IV
Dec 10, 2021 7:58 AM UTC

From "Help Center" - "Password Base type": https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Composer/Security/password_basetype.html

 

Article - "Error occuring while setting password type variable using password property in ThingWorx": https://www.ptc.com/en/support/article/CS238671 

Translate
RK_07051-VisitorAuthor
1-Visitor
Dec 10, 2021 8:22 AM UTC

@VladimirN 

This article is for converting from STRING to PASSWORD.

 

But I need its reverse conversion from PASSWORD to STRING (if its feasible).

Translate
17-Peridot
Dec 15, 2021 2:29 PM UTC

@RK_0705,

 

There are 2 methods to store information. A string can be encrypted or it can be hashed.

In ThingWorx a password is stored by creating a hash of the string entered. This is a math operation which can not be undone. If you have a value which was truly stored as a password then there is no method available to get the original string.

 

HTH

Pehowe

Translate