DataProtectionCommonExtensions.Protect(IDataProtector, String) Methode

Definition

Kryptografisch schützt ein Stück Klartextdaten.

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

Parameter

protector
IDataProtector

Der Datenschutz, der für diesen Vorgang verwendet werden soll.

plaintext
String

Die zu schützenden Klartextdaten.

Gibt zurück

Die geschützte Form der Klartextdaten.

Gilt für: