/// <summary> /// Return UTF8 decoded string after decrypt AES byte[]. Use AESDecrypt if your original source is not a string. /// </summary> /// <param name="input">Byte[] input</param> /// <param name="key">Key input</param> /// <param name="iv">IV input</param> /// <param name="keySizeInBit">Aes key size</param> /// <returns></returns> public static string AESStringDecrypt(this byte[] input, byte[] key, byte[] iv, int keySizeInBit = 256) => input.AESDecrypt(key, iv, keySizeInBit).ConvertToString().Trim('\0');