mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 23:33:34 +00:00
initial commit
This commit is contained in:
17
src/App/Abstractions/Services/ICryptoService.cs
Normal file
17
src/App/Abstractions/Services/ICryptoService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Bit.App.Models;
|
||||
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface ICryptoService
|
||||
{
|
||||
string Base64Key { get; }
|
||||
byte[] Key { get; set; }
|
||||
|
||||
string Decrypt(CipherString encyptedValue);
|
||||
CipherString Encrypt(string plaintextValue);
|
||||
byte[] MakeKeyFromPassword(string password, string salt);
|
||||
string MakeKeyFromPasswordBase64(string password, string salt);
|
||||
byte[] HashPassword(byte[] key, string password);
|
||||
string HashPasswordBase64(byte[] key, string password);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user