CryptoUtilities.EncryptSecretRSAPKCS(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.
This method encrypts a given secret using the public certificate.
public static string EncryptSecretRSAPKCS (string plainText, string publicCertificate);
static member EncryptSecretRSAPKCS : string * string -> string
Public Shared Function EncryptSecretRSAPKCS (plainText As String, publicCertificate As String) As String
Parameters
- plainText
- String
The secret in plain text.
- publicCertificate
- String
The public certificate to be used for encryption.
Returns
The encrypted secret.
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