| Reply | « Previous Thread | Next Thread » |
|
how i can set a hex identifier and convert it to byte[] ?
i need a code line! thanks www.NearConn.com - the first Bluetooth - Cellular - Web Social network ------------------------------------------------------------------- Please visit my programming blog , it has many programming problems and soulution that may help u. http://byramix.blogspot.com |
|
What do you mean with ‘hex identifier’? Could you just write what you think of and we correct it then?
|
|
i have an encryption function that need a hex key in bytes, how i can write for example: key = "a1a1a1"
and turn it to bytes so the function can use it www.NearConn.com - the first Bluetooth - Cellular - Web Social network ------------------------------------------------------------------- Please visit my programming blog , it has many programming problems and soulution that may help u. http://byramix.blogspot.com |
|
Still, I am not able to help you. I recommend to ask the support of encryption function API.
Some guesses (no idea, sorry): If the key is a String: key.getBytes() (of class String) If the key is an Integer encoded in a String as hexadecimal: Long.parseLong(key, 16) If all that does not help: Byte.parseByte(everyTwoCharsOfKey, 16)? |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| WML & WMLSCript problem ???? | gemini_shooter | Browsing and Mark-ups | 0 | 2006-01-14 07:02 |
| WML & WMLSCript problem ???? | gemini_shooter | Browsing and Mark-ups | 0 | 2006-01-14 07:01 |
| Personal | JSmith77 | PersonalJava | 4 | 2003-07-30 13:52 |
| Unicode Song Title In NSM Ringtone | mcai7db3 | Smart Messaging | 3 | 2002-08-28 07:58 |
| Internet Access Config via Smart Message | ajbrindley | Smart Messaging | 1 | 2002-08-14 08:56 |