33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Obfuz
|
|
{
|
|
public interface IEncryptor
|
|
{
|
|
void EncryptBlock(byte[] data, long ops, int salt);
|
|
void DecryptBlock(byte[] data, long 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);
|
|
public byte[] Decrypt(byte[] value, int offset, int byteLength, int ops, int salt);
|
|
|
|
public byte[] Encrypt(string value, int ops, int salt);
|
|
public string DecryptString(byte[] value, int offset, int stringBytesLength, int ops, int salt);
|
|
}
|
|
}
|