Esempio n. 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))));
 }
Esempio n. 2
0
 public static float DecryptFloat(this byte[] byteArray, int keyIndex = 0)
 {
     return(float.Parse(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex))));
 }
Esempio n. 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());
 }
Esempio n. 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());
 }
Esempio n. 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());
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 8
0
 public static string DecryptString(this byte[] byteArray, int keyIndex = 0)
 {
     return(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)));
 }
Esempio n. 9
0
 public static bool DecryptBool(this byte[] byteArray, int keyIndex = 0)
 {
     return(bool.Parse(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex))));
 }