Main Site Documentation

Snippet - String to WEP Key


#1

[title]String to WEP Key[/title]
http://code.tinyclr.com/project/458/string-to-wep-key/
[line]
One thing NetMF 4.1 lacks is a BitConverter class.
As such, it’s not intriusically possible to convert a string to the string representation of the ASCII characters that make up each letter in the string.
For instance, a 128-bit WEP key of “1234567890123” would actually be sent as “31323334356337383930313233”, where “31” is the hexadecimal representation of the ASCII value for the number “1”, “32” is the hexadecimal representation for the ASCII value of the number “2”: and so on.