Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running gentoo on my laptop, and I'm currently using wpa_supplicant to handle wifi.

My configuration works and I can connect, but it is required to type in the plain text password into the configuration file. This doesn't work if I want to connect to a friend's wifi and they want to type in the password instead of telling me what it is. There's no security with plain text passwords.

How can I make this more secure so that some sort of encrypted password is stored instead of plaintext?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

wpa_passphrase [ ssid ] [ passphrase ] generates a WPA PSK from an ASCII passphrase for a SSID. Then store it as

network={
        ssid="your ssid"
        psk=outputfromabove
}
share|improve this answer
    
oh great, thanks. Do you know of any option to have it take the passphrase as a linux password where it doesn't show the characters? –  mouche Aug 11 '10 at 6:36
    
Do history -c instead. –  Ian May 6 '12 at 6:54
2  
Or do xargs -n 2 wpa_passphrase followed by ssid and passphrase each on its own line, followed by C-d. –  Pedro Silva May 6 '12 at 19:31
    
This adds no security. While the password is not stored in plain text, knowing the PSK is enough to connect to the network. –  BatchyX Apr 2 at 20:24
    
I'm just answering the question. In any case, en.wikipedia.org/wiki/Salt_(cryptography). –  Pedro Silva Apr 2 at 21:11
add comment

Alternately leave the password entry blank. If you're running wpa_gui, it will prompt you for the password. (I do this with eduroam accounts, as my password is the same as my *nix login)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.