Playback.EncryptText Method

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.

Community Additions

ADD
Show: