diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-03-19 22:20:23 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-03-19 22:47:50 +0100 |
commit | aa898d65fef0a8695e8412480146d1b6048771f2 (patch) | |
tree | 4839177614e34ff5b64dc5c0a2e3f17c897ce6e5 /utils/rknanoutils/rkload/rkloader.c | |
parent | 9965849765bb113801d2d4c93e07fc259d307f3e (diff) | |
download | rockbox-aa898d65fef0a8695e8412480146d1b6048771f2.tar.gz rockbox-aa898d65fef0a8695e8412480146d1b6048771f2.zip |
Encode the password using base64 before storing it to the configuration file.
There are two reasons for this:
- QUrl::toEncoded() has problems with some characters like the colon and @.
Those are not percent encoded, causing the string getting parsed wrongly when
reading it back (see FS#12166).
- The password is cleartext in the configuration file.
While using base64 doesn't provide any real security either it's at
least better than plaintext.
Since this program is open source any fixed mechanism to obfuscate /
encrypt the password isn't much help either since anyone interested in
the password can look at the sources. The best way would be to
eventually use host OS functionality to store the password.
Change-Id: I6ac49d68211236e540b6ca16481e0e1c196532b7
Diffstat (limited to 'utils/rknanoutils/rkload/rkloader.c')
0 files changed, 0 insertions, 0 deletions