6

When I do cat on wpa_supplicant.conf file on Samsung mobiles, I see that the passwords are encrypted. But when I open the same file on LG mobiles, I can see the passwords in plain text.

This is what I see on my Galaxy S5. The information below is for my network which has a WPA password 77807780 (psk is the encrypted passkey):

network={
        ssid=""
        psk=fce6c4f64304b00c5783199bbd2b1f91
        key_mgmt=WPA-PSK
        priority=10
        frequency=2462
        autojoin=1
        usable_internet=0
        skip_internet_check=0
}

Is this a feature on Samsung mobiles? What kind of encryption is used to encrypt the password and how to decrypt them?

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
MOHAMMAD RASIM
  • 171
  • 1
  • 1
  • 6

3 Answers3

3

Use wpa_supplicant's wpa_passphrase tool to create your own "real" psk. Actually, the plain-text psk (double-quoted) must be processed at every startup and config reload to generate the real, 64 hex-digit (256-bit) psk. So, using wpa_passphrase to manually create the fully-processed PSK actually optimizes wpa_supplicant's startup & config reload time. :)

About decrypting them... wpa_supplicant uses an AES-based cipher, which is well respected. I think TKIP is deprecated and possibly exploitable.

Ben Cook
  • 31
  • 4
3

I got a solution:

  • Go to root browser
  • Go to /etc/secure_storage/.system.wpa_supplicant then delete this folder (only ".secure.supplicant.conf"), then reboot.
  • Strange number gone

Note: It only works for Samsung devices, all saved WiFi hotspots will be lost for the first time.

GiantTree
  • 4,062
  • 1
  • 20
  • 26
2

Find the following line in build.prop:

ro.securestorage.support=true

and change it to

ro.securestorage.support=false

Then reboot the device. Now retype password of your Wi-Fi network.

If your phone is rooted, you can view passwords either by reading wpa_supplicant.conf file or by installing "WiFi Key Recovery" app.

krzywo97
  • 132
  • 11
Wirus
  • 21
  • 2
  • currently i don't have a device to test your solution on, but anyway that's not what i asked for i need to know the encryption type and how to decrypt an already encrypted password – MOHAMMAD RASIM Sep 12 '15 at 12:49
  • This is the same as the one above that deletes the secure storage folder, but applies to everything that uses Secure Server. – cde Jun 11 '16 at 22:57
  • @MOHAMMAD it's unlikely you will ever decrypt one once encrypted. – cde Jun 11 '16 at 22:59