EncryptUtilities.Encrypt(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encrypts a string.
public static string Encrypt (this string plainText, string key);
static member Encrypt : string * string -> string
<Extension()>
Public Function Encrypt (plainText As String, key As String) As String
Parameters
- plainText
- String
The string to encrypt.
- key
- String
The key to use for encryption.
Returns
The base64-encrypted value.