Skip to main content
1-Visitor
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

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

@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

@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