public static bool descriptografarAES(string textoParaDescriptografar, out string textoDescriptografado)
        {
            try
            {
                AESEncriptor aesEncriptor = new AESEncriptor();

                aesEncriptor.Key = getAesKey();
                aesEncriptor.InitializatorVector = getAesIV();
                aesEncriptor.CipherText = Convert.FromBase64String(textoParaDescriptografar);

                string decriptedData = null;
                if (!aesEncriptor.decriptarAES(out decriptedData))
                {
                    textoDescriptografado = null;
                    return false;
                }

                textoDescriptografado = decriptedData;

                return true;
            }
            catch
            {
                textoDescriptografado = null;
                return false;
            }
        }
        public static bool criptografarAES(string textoParaEncriptar, out string textoEncriptado)
        {
            try
            {
                AESEncriptor aesEncriptor = new AESEncriptor();

                aesEncriptor.Key = getAesKey();
                aesEncriptor.InitializatorVector = getAesIV();
                aesEncriptor.PlainText = textoParaEncriptar;

                byte[] encriptedData = null;
                if (!aesEncriptor.encriptarAES(out encriptedData))
                {
                    textoEncriptado = null;
                    return false;
                }

                textoEncriptado = Convert.ToBase64String(encriptedData);

                return true;
            }
            catch
            {
                textoEncriptado = null;
                return false;
            }
        }