bitwarden-android/src/App/Abstractions/Services/ICryptoService.cs
2016-05-02 02:52:09 -04:00

17 lines
No EOL
541 B
C#

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);
}
}