mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
namespace Obfuz
|
|
{
|
|
public interface IEncryptor
|
|
{
|
|
int OpCodeCount { get; }
|
|
|
|
void EncryptBlock(byte[] data, int ops, int salt);
|
|
void DecryptBlock(byte[] data, int ops, int salt);
|
|
|
|
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);
|
|
|
|
byte[] Encrypt(byte[] value, int offset, int length, int opts, int salt);
|
|
byte[] Decrypt(byte[] value, int offset, int byteLength, int ops, int salt);
|
|
|
|
byte[] Encrypt(string value, int ops, int salt);
|
|
string DecryptString(byte[] value, int offset, int stringBytesLength, int ops, int salt);
|
|
|
|
void DecryptInitializeArray(System.Array arr, System.RuntimeFieldHandle field, int length, int ops, int salt);
|
|
}
|
|
}
|