Convert hexString to base64 :             byte[] ba = Encoding.Default.GetBytes(input);
            var hexString = BitConverter.ToString(ba);
            hexString = hexString.Replace("-", "");
            Console.WriteLine("Or: " + hexString + " in hexadecimal");
So i got this, now how would i convert hexString to a base64 string? i tried [this][1], got "Cannot convert from string to byte[]". If that solution works for anyone else, what am i doing wrong?


  [1]: https://stackoverflow.com/questions/7784345/conversion-between-base64string-and-hexadecimal