Content Management and Capture

 View Only

How to extract a decrypted string from "@APPVAR(tmengine:cs)" parameter in C#

  • 1.  How to extract a decrypted string from "@APPVAR(tmengine:cs)" parameter in C#

    Posted Fri January 20, 2023 02:07 AM
    Hi,
    I am writing a custom code in c#.
    I want to connect to Engine Database and read records from Queue table.
    So I'd like to retrieve a connection string from .app file.
    My code looks like this.

    string engDbString = localSmartObj.MetaWord("@APPVAR(tmengine:cs)");

    After execution, engDbString variable contained

    engDbString=[secured]01c1b6da1580ef722af24179c1edb74cf64230e1dc5d6da64192013f4596d94e3141ab55734615faa710f8eb58d9a28c8de8a5b247cf800cc3025c1524b5eb8e8ba500598404b867155d188590fde6a645a31374e259b90b8b4187125f8457471aa4352080e0869b3efc78118970b5c6cd6df14ac5c8bf361a9c3ed032026781b2fbc918bc639443f76b558b9969ff865d158042178a6eaa057af6bbe0ffdea3e860fbb2a192a27494b9cd9a4400500babd516ce1eb35c8958f24c4c903fb69526a35f2268fd85f29d125e6e4238963f052d81550e983fdfb6a27ffb6e96e1cf74[/secured]

    I want a decrypted string, not this secured one.
    Is there anyway to decode this to plain text? I know I can write out the connection string in Generic Custom Value section.
    But this will require us to expose the password and the client most probably will not like it.

    ------------------------------
    dsakai
    ------------------------------