Forum Discussion

Tom_E's avatar
Tom_E
Occasional Contributor
12 years ago

Concealing Passwords in Test Results

We are using .mht for logs and need to conceal the passwords  to prevent security breaches.  The passwords are brought in as parameters, but the results may be broadcast to a wide range of people.  We are using JScript. How can this be done?  I have searched through the help information and am at a loss on how to make something read-only.

3 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Tom,


    I recommend that you try to store your password to the encrypted data storage, and then retrieve it from the storage at run time. For more information, please refer to the Work with encrypted data storage How To entry.


    I hope this information helps :)

  • Tom_E's avatar
    Tom_E
    Occasional Contributor
    Well, I added a general event and the following:




    function GeneralEvents_OnLogEvent(Sender, LogParams)


    GeneralEvents_OnLogEvent(Sender, LogParams)

    {


     



    if(aqString.Find(LogParams.StrEx,"Password",false)!=-1)


    (.Find(LogParams.StrEx,"Password",)!=-1)

    {


    LogParams.Str= "The password was entered in the text editor.";


    }


    }


    This seems to work and is simpler than using secure storage.  Do you see anything wrong with this approach?

    Thanks,

    Tom
  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Tom,


    You're right. It's really simpler than using secure storage if you just need to remove the entered text from the generated results.


    I'm sorry for confusing you :)