1 // Copyright (c) .NET Foundation. All rights reserved. 2 // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 4 using System; 5 using System.Collections.Generic; 6 7 namespace Microsoft.AspNetCore.Identity 8 { 9 /// <summary> 10 /// Provides an abstraction used for personal data encryption. 11 /// </summary> 12 public interface IPersonalDataProtector 13 { 14 /// <summary> 15 /// Protect the data. 16 /// </summary> 17 /// <param name="data">The data to protect.</param> 18 /// <returns>The protected data.</returns> Protect(string data)19 string Protect(string data); 20 21 /// <summary> 22 /// Unprotect the data. 23 /// </summary> 24 /// <param name="data"></param> 25 /// <returns>The unprotected data.</returns> Unprotect(string data)26 string Unprotect(string data); 27 } 28 }