WiFiManager icon indicating copy to clipboard operation
WiFiManager copied to clipboard

How to encrypt a file?

Open andrequeiroz2 opened this issue 6 years ago • 5 comments

I would like to encrypt this information ssid and passw in 'wifi.dat'. how can I do this?

andrequeiroz2 avatar Jul 24 '19 16:07 andrequeiroz2

There isn't much point in encrypting this as you'ld need to decrypt it to use it.

Also, you'ld need to either have the decryption key on the device or manually enter it every time it needs to be decrypted.

ThomasWaldmann avatar Jul 24 '19 21:07 ThomasWaldmann

I partially agree with you. Having the password displayed legibly, can bring discomfort depending on the security policy adopted. I understand that keeping the decryption key on the device only makes it difficult to read the password, but that's the intention

andrequeiroz2 avatar Jul 25 '19 13:07 andrequeiroz2

The point is that it is security by obscurity (which is known to not really work) if you have a ready-to-use decryption key on the device.

You can not read the password in the encrypted file, but you can use the key to decrypt it and then read it.

ThomasWaldmann avatar Jul 25 '19 21:07 ThomasWaldmann

Ok, would you have any suggestions for solving this problem?

andrequeiroz2 avatar Jul 27 '19 00:07 andrequeiroz2

It is unclear what the problem is and what you are trying to achieve. Depending on that, there might be a solution or it might be fundamentally impossible.

ThomasWaldmann avatar Jul 27 '19 15:07 ThomasWaldmann