mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
18 lines
585 B
C#
18 lines
585 B
C#
|
namespace TINK.Model.Device
|
|||
|
{
|
|||
|
public interface ICipher
|
|||
|
{
|
|||
|
/// <summary> Encrypt data.</summary>
|
|||
|
/// <param name="key">Key to encrypt data.</param>
|
|||
|
/// <param name="clear">Data to entrycpt.</param>
|
|||
|
/// <returns></returns>
|
|||
|
byte[] Encrypt(byte[] key, byte[] clear);
|
|||
|
|
|||
|
/// <summary> Decrypt data. </summary>
|
|||
|
/// <param name="key">Key to decrypt data.</param>
|
|||
|
/// <param name="encrypted">Encrpyted data to decrypt.</param>
|
|||
|
/// <returns></returns>
|
|||
|
byte[] Decrypt(byte[] key, byte[] encrypted);
|
|||
|
}
|
|||
|
}
|