HDInsightClient.EncryptAsBase64String(X509Certificate2, 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.
Encrypt payload string into a base 64-encoded string using the certificate. This is suitable for encrypting storage account keys for later use as a job argument.
public static string EncryptAsBase64String (System.Security.Cryptography.X509Certificates.X509Certificate2 cert, string payload);
static member EncryptAsBase64String : System.Security.Cryptography.X509Certificates.X509Certificate2 * string -> string
Public Shared Function EncryptAsBase64String (cert As X509Certificate2, payload As String) As String
Parameters
- cert
- X509Certificate2
Certificate used to encrypt the payload.
- payload
- String
Value to encrypt.
Returns
Encrypted payload.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET