mirror of
https://github.com/bitwarden/server.git
synced 2025-04-26 23:32:19 -05:00
10 lines
245 B
C#
10 lines
245 B
C#
namespace Bit.Core.Tokens;
|
|
|
|
public interface IDataProtectorTokenFactory<T> where T : Tokenable
|
|
{
|
|
string Protect(T data);
|
|
T Unprotect(string token);
|
|
bool TryUnprotect(string token, out T data);
|
|
bool TokenValid(string token);
|
|
}
|