Example #1
0
 public static int GetLengthDecrypted(int lengthOriginal, byte[] password, LevelEncrypt level)
 {
     return(CommonDisimulatMethod.GetLengthDecrypted(lengthOriginal, password, level));
 }
Example #2
0
        public static Context <byte> Encrypt(Context <byte> context, byte[] password, LevelEncrypt level = LevelEncrypt.Normal, StopProcess stopProcess = null)
        {
            TwoKeys <int, int> minMax = GetMinMax(context.Input);

            return(CommonDisimulatMethod.Encrypt(context, password, minMax.Key1, minMax.Key2, level, stopProcess));
        }
Example #3
0
 public static Context <byte> Decrypt(Context <byte> context, byte[] password, LevelEncrypt level = LevelEncrypt.Normal, StopProcess stopProcess = null)
 {
     return(CommonDisimulatMethod.Decrypt(context, password, level, stopProcess));
 }
Example #4
0
 public static Context <byte> Encrypt(byte[] data, byte[] password, LevelEncrypt level = LevelEncrypt.Normal, StopProcess stopProcess = null)
 {
     return(CommonDisimulatMethod.Encrypt(data, password, 0, MAX, level, stopProcess));
 }