Exemple #1
0
 public static float DecryptFloat(this string value, int keyIndex = 0)
 {
     return(float.Parse(QEncryption.DecryptBytes(Array.ConvertAll(value.Split(StringDelimiter), byte.Parse), KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex))));
 }
Exemple #2
0
 public static float DecryptFloat(this byte[] byteArray, int keyIndex = 0)
 {
     return(float.Parse(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex))));
 }
Exemple #3
0
 public static List <string> DecryptStringList(this string value, int keyIndex = 0)
 {
     return(QEncryption.DecryptBytes(Array.ConvertAll(value.Split(StringDelimiter), byte.Parse), KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)).Split(StringDelimiter).ToList());
 }
Exemple #4
0
 public static List <string> DecryptStringList(this byte[] byteArray, int keyIndex = 0)
 {
     return(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)).Split(StringDelimiter).ToList());
 }
Exemple #5
0
 public static List <bool> DecryptBoolList(this byte[] byteArray, int keyIndex = 0)
 {
     return(Array.ConvertAll(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)).Split(StringDelimiter), bool.Parse).ToList());
 }
Exemple #6
0
 public static bool[] DecryptBoolArray(this string value, int keyIndex = 0)
 {
     return(Array.ConvertAll(QEncryption.DecryptBytes(Array.ConvertAll(value.Split(StringDelimiter), byte.Parse), KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)).Split(StringDelimiter), bool.Parse));
 }
Exemple #7
0
 public static int[] DecryptIntArray(this byte[] byteArray, int keyIndex = 0)
 {
     return(Array.ConvertAll(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)).Split(StringDelimiter), int.Parse));
 }
Exemple #8
0
 public static string DecryptString(this byte[] byteArray, int keyIndex = 0)
 {
     return(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)));
 }
Exemple #9
0
 public static bool DecryptBool(this byte[] byteArray, int keyIndex = 0)
 {
     return(bool.Parse(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex))));
 }