Thread: wpa2-psk
View Single Post
  #9   (View Single Post)  
Old 3rd July 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,250
Default

WPA pre-shared key mode uses a 256-bit key. This key is either represented as a string of 64 Hexidecimal digits (and by convention, on Unix-like system they are represented beginning with 0x, such as 0xb7d130....), or as an 8 to 63-byte printable ASCII passphrase, such as "this is my passphrase" or MySecretKey or as you tried to use, 123456790.

If an ASCII passphrase is used, it is transformed into a 256-bit key via a cryptographic hash, using the SSID as a salt to 4096 iterations of HMAC-SHA1.

This transformation is the job of wpa_supplicant, if it finds an ASCII passphrase. You need not do this yourself. Just set psk="1234567890" in /etc/wpa_supplicant.conf if that is your ASCII passphrase.

Last edited by jggimi; 3rd July 2013 at 12:28 PM. Reason: clarity
Reply With Quote