base64 decode

This commit is contained in:
Jake Visser 2017-07-11 23:52:16 -07:00
parent 3765710da8
commit 1efd9f65d6

View file

@ -164,6 +164,12 @@ namespace qcbadge.Controllers
System.Diagnostics.Debug.WriteLine("*************************************"); System.Diagnostics.Debug.WriteLine("*************************************");
System.Diagnostics.Debug.WriteLine("*************************************"); System.Diagnostics.Debug.WriteLine("*************************************");
//http://tomeko.net/online_tools/hex_to_base64.php?lang=en
//for base64 convert
byte[] bytes = Convert.FromBase64String("test");
string hex = BitConverter.ToString(bytes);
String qcData = advertData.Substring(24, 20); String qcData = advertData.Substring(24, 20);
System.Diagnostics.Debug.WriteLine(qcData); System.Diagnostics.Debug.WriteLine(qcData);