sharee.bike-App/LockIt.BusinessLogic/Model/Device/ICipher.cs

18 lines
522 B
C#
Raw Normal View History

2024-04-09 12:53:23 +02:00
namespace ShareeBike.Model.Device
2021-05-13 17:07:16 +02:00
{
2022-09-06 16:08:19 +02:00
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);
2021-05-13 17:07:16 +02:00
2022-09-06 16:08:19 +02:00
/// <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);
}
2021-05-13 17:07:16 +02:00
}