Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Playback::EncryptText Method (String^)

 

Encrypts a given text for passing to playback as password property.

Namespace:   Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public:
static String^ EncryptText(
	String^ textToEncrypt
)

Parameters

textToEncrypt
Type: System::String^

The string to encode.

Return Value

Type: System::String^

The encrypted text.

This will encrypt the provided text with a key which is set with the SetEncryptionKeyLocation method. If the key file is not set, then this method will use a default key for encryption.

Return to top
Show: