18 references to Protect
CustomEncryptorSample (1)
Program.cs (1)
25var protectedPayload = protector.Protect("Hello World!");
EntityFrameworkCoreSample (1)
Program.cs (1)
37var protectedData = protector.Protect("Hello world!");
KeyManagementSample (1)
Program.cs (1)
30services.GetDataProtector("Sample.KeyManager.v1").Protect("payload");
Microsoft.AspNetCore.Components.Server (1)
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (1)
128return protector.Protect(json);
Microsoft.AspNetCore.Components.Server.Tests (1)
ProtectedBrowserStorageTest.cs (1)
300=> new TestDataProtector(purpose).Protect(plaintext);
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (2)
DataProtectionCommonExtensionsTests.cs (2)
252mockProtector.Object.Protect("Hello\ud800"); 265string retVal = mockProtector.Object.Protect("Hello");
Microsoft.AspNetCore.DataProtection.Extensions (1)
DataProtectionAdvancedExtensions.cs (1)
45return wrappingProtector.Protect(plaintext);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (8)
DataProtectionProviderTests.cs (8)
35Assert.Equal("payload", protector.Unprotect(protector.Protect("payload"))); 70Assert.Equal("payload", protector.Unprotect(protector.Protect("payload"))); 104Assert.Equal("payload", protector.Unprotect(protector.Protect("payload"))); 145var data = protector.Protect("payload"); 196var data = protector.Protect("payload"); 230protector.Unprotect(protector.Protect("payload"))); 259protector.Unprotect(protector.Protect("payload"))); 301var data = protector.Protect("payload");
NonDISample (1)
Program.cs (1)
30var protectedPayload = protector.Protect("Hello World!");
Redis (1)
Program.cs (1)
28var protectedData = protector.Protect("Hello world!");