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)))); }
public static float DecryptFloat(this byte[] byteArray, int keyIndex = 0) { return(float.Parse(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)))); }
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()); }
public static List <string> DecryptStringList(this byte[] byteArray, int keyIndex = 0) { return(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)).Split(StringDelimiter).ToList()); }
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()); }
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)); }
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)); }
public static string DecryptString(this byte[] byteArray, int keyIndex = 0) { return(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex))); }
public static bool DecryptBool(this byte[] byteArray, int keyIndex = 0) { return(bool.Parse(QEncryption.DecryptBytes(byteArray, KeyHolder.GetKey(keyIndex), KeyHolder.GetIV(keyIndex)))); }