JWE.Encrypt 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.
Overloads
Encrypt(X509Certificate2, Byte[]) | |
Encrypt(Byte[], Byte[], String, String) |
Encrypt(X509Certificate2, Byte[])
public void Encrypt (System.Security.Cryptography.X509Certificates.X509Certificate2 cert, byte[] plaintext);
member this.Encrypt : System.Security.Cryptography.X509Certificates.X509Certificate2 * byte[] -> unit
Public Sub Encrypt (cert As X509Certificate2, plaintext As Byte())
Parameters
- cert
- X509Certificate2
- plaintext
- Byte[]
Applies to
Encrypt(Byte[], Byte[], String, String)
public void Encrypt (byte[] cek, byte[] plain_text, string algId, string kid = default);
member this.Encrypt : byte[] * byte[] * string * string -> unit
Public Sub Encrypt (cek As Byte(), plain_text As Byte(), algId As String, Optional kid As String = Nothing)
Parameters
- cek
- Byte[]
- plain_text
- Byte[]
- algId
- String
- kid
- String