DataProtectionCommonExtensions.Protect(IDataProtector, String) Método

Definición

Protege criptográficamente un fragmento de datos de texto no cifrado.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Protect(Microsoft::AspNetCore::DataProtection::IDataProtector ^ protector, System::String ^ plaintext);
public static string Protect (this Microsoft.AspNetCore.DataProtection.IDataProtector protector, string plaintext);
static member Protect : Microsoft.AspNetCore.DataProtection.IDataProtector * string -> string
<Extension()>
Public Function Protect (protector As IDataProtector, plaintext As String) As String

Parámetros

protector
IDataProtector

Protector de datos que se va a usar para esta operación.

plaintext
String

Datos de texto no cifrado que se van a proteger.

Devoluciones

Forma protegida de los datos de texto no cifrado.

Se aplica a