2025-05-11 10:37:42 +08:00
|
|
|
|
using System.Collections.Generic;
|
2025-04-23 18:58:44 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Obfuz
|
|
|
|
|
{
|
|
|
|
|
public interface IEncryptor
|
|
|
|
|
{
|
2025-05-11 20:12:33 +08:00
|
|
|
|
int OpCodeCount { get; }
|
|
|
|
|
|
2025-05-11 10:37:42 +08:00
|
|
|
|
void EncryptBlock(byte[] data, int ops, int salt);
|
|
|
|
|
void DecryptBlock(byte[] data, int ops, int salt);
|
2025-05-07 22:55:07 +08:00
|
|
|
|
|
|
|
|
|
int Encrypt(int value, int opts, int salt);
|
|
|
|
|
int Decrypt(int value, int opts, int salt);
|
|
|
|
|
|
|
|
|
|
long Encrypt(long value, int opts, int salt);
|
|
|
|
|
long Decrypt(long value, int opts, int salt);
|
|
|
|
|
|
|
|
|
|
float Encrypt(float value, int opts, int salt);
|
|
|
|
|
float Decrypt(float value, int opts, int salt);
|
|
|
|
|
|
|
|
|
|
double Encrypt(double value, int opts, int salt);
|
|
|
|
|
double Decrypt(double value, int opts, int salt);
|
|
|
|
|
|
2025-05-08 08:54:18 +08:00
|
|
|
|
byte[] Encrypt(byte[] value, int offset, int length, int opts, int salt);
|
|
|
|
|
public byte[] Decrypt(byte[] value, int offset, int byteLength, int ops, int salt);
|
2025-05-07 22:55:07 +08:00
|
|
|
|
|
2025-05-08 08:54:18 +08:00
|
|
|
|
public byte[] Encrypt(string value, int ops, int salt);
|
|
|
|
|
public string DecryptString(byte[] value, int offset, int stringBytesLength, int ops, int salt);
|
2025-04-23 18:58:44 +08:00
|
|
|
|
}
|
|
|
|
|
}
|