WifiManager wm = (WifiManager)ctx.getSystemService(Context.WIFI_SERVICE);
String macAddress = wm.getConnectionInfo().getMacAddress();
it is a String in hex format, for example:
"00:23:76:B7:2B:4D"
I want to convert this string into a byte array so that I can use MessageDigest sha1 on it
I got it worked in Python by using the excaping \x instead of : using the hashlib module.
But I would I do it in android/java? Thanks!