I use in my C++/CLI project ToBase64String
to give a string like /MnwRx7kRZEQBxLZEkXndA==
I want to convert this string to Hexadecimal representation, How I can do that in C++/CLI or C#?
FromBase64String will take the string
to byte
s
byte[] bytes = Convert.FromBase64String(string s);
Then, BitConverter.ToString()
will convert a byte array to a hex string ( byte[] to hex string )
string hex = BitConverter.ToString(bytes);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With