[ADD] Implementing services/handlers
This commit is contained in:
14
DotBased.AspNet.Authority/Crypto/Cryptographer.cs
Normal file
14
DotBased.AspNet.Authority/Crypto/Cryptographer.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace DotBased.AspNet.Authority.Crypto;
|
||||
|
||||
public class Cryptographer : ICryptographer
|
||||
{
|
||||
public Task<string?> EncryptAsync(string data)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<string?> DecryptAsync(string data)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
7
DotBased.AspNet.Authority/Crypto/ICryptographer.cs
Normal file
7
DotBased.AspNet.Authority/Crypto/ICryptographer.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace DotBased.AspNet.Authority.Crypto;
|
||||
|
||||
public interface ICryptographer
|
||||
{
|
||||
public Task<string?> EncryptAsync(string data);
|
||||
public Task<string?> DecryptAsync(string data);
|
||||
}
|
6
DotBased.AspNet.Authority/Crypto/IPasswordHasher.cs
Normal file
6
DotBased.AspNet.Authority/Crypto/IPasswordHasher.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace DotBased.AspNet.Authority.Crypto;
|
||||
|
||||
public interface IPasswordHasher
|
||||
{
|
||||
public Task<string> HashPasswordAsync(string password);
|
||||
}
|
9
DotBased.AspNet.Authority/Crypto/PasswordHasher.cs
Normal file
9
DotBased.AspNet.Authority/Crypto/PasswordHasher.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace DotBased.AspNet.Authority.Crypto;
|
||||
|
||||
public class PasswordHasher : IPasswordHasher
|
||||
{
|
||||
public async Task<string> HashPasswordAsync(string password)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user