Skip to main content
1-Visitor
December 10, 2021
Question

Convert Password to its corresponding string

  • December 10, 2021
  • 1 reply
  • 1686 views

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.

1 reply

24-Ruby III
December 10, 2021

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 

RK_07051-VisitorAuthor
1-Visitor
December 10, 2021

@VladimirN 

This article is for converting from STRING to PASSWORD.

 

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

17-Peridot
December 15, 2021

@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