<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[What&#x27;s the best way to store a user password?]]></title><description><![CDATA[<p dir="auto">For the <a href="https://open-store.io/app/ut-nextcloud-music.gwado" target="_blank" rel="noopener noreferrer nofollow ugc">UT Nextcloud Music</a> application, I'm looking to store the connection form data (url, user, password) to avoid having to retype them regularly.<br />
I've managed to store this data in an sqlite database. Everything's working fine.<br />
But I'm wondering about saving the password in clear text in a local database.<br />
Is it secure?<br />
Do I have to hash/salt it? Knowing that I have to do the reverse afterwards, which makes the method available to anyone?<br />
Is it possible to use a system method? And if so, do you know a piece of QML code to store and retrieve this, please?</p>
]]></description><link>https://forums.ubports.com/topic/10587/what-s-the-best-way-to-store-a-user-password</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 23:37:07 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/10587.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Nov 2024 20:40:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Thu, 01 May 2025 20:18:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/adorsaz" aria-label="Profile: adorsaz">@<bdi>adorsaz</bdi></a> said in <a href="/post/85662">What's the best way to store a user password?</a>:</p>
<blockquote>
<p dir="auto">Although, IIRC Ubuntu Touch lets user use phone without password/pin code. Maybe this is the reason such service is not provided to app developpers ?</p>
</blockquote>
<p dir="auto">Ubuntu desktop also allows passwordless login. So that in itself is not the reason there is no implementation of libsecret on UT. The real reason is probably simply that none was implemented as yet.</p>
]]></description><link>https://forums.ubports.com/post/85664</link><guid isPermaLink="true">https://forums.ubports.com/post/85664</guid><dc:creator><![CDATA[arubislander]]></dc:creator><pubDate>Thu, 01 May 2025 20:18:19 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Thu, 01 May 2025 18:25:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applee" aria-label="Profile: AppLee">@<bdi>AppLee</bdi></a> another way for application developpers is by using the libsecret protocol to ask a user session service to store sensitive data. Gnome-keyring is such a service which creates by default a key store locked by the current user password.</p>
<p dir="auto">IIIRC the KDE/plasma service is named kwallet.</p>
<p dir="auto">Although, IIRC Ubuntu Touch lets user use phone without password/pin code. Maybe this is the reason such service is not provided to app developpers ?</p>
]]></description><link>https://forums.ubports.com/post/85662</link><guid isPermaLink="true">https://forums.ubports.com/post/85662</guid><dc:creator><![CDATA[adorsaz]]></dc:creator><pubDate>Thu, 01 May 2025 18:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Thu, 01 May 2025 16:13:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vlad-nirky" aria-label="Profile: Vlad-Nirky">@<bdi>Vlad-Nirky</bdi></a> said in <a href="/post/85657">What's the best way to store a user password?</a>:</p>
<blockquote>
<p dir="auto">Isn't it a problem for any operating system ?</p>
</blockquote>
<p dir="auto">For proprietary OS, they can easily work around it by integrating a secret in the binary and only the authenticated user can make use of this secret to access sensitive data.<br />
It's not the best, but it's pretty good.<br />
Or they can rely on security cores to store all the user's secrets in it and grant access only to a trusted piece of code made by the developer of the OS then it's up to the OS to check the user's credentials before accessing the sensitive data.<br />
This is widely used nowadays but do you trust the OS developer with your secrets?</p>
]]></description><link>https://forums.ubports.com/post/85660</link><guid isPermaLink="true">https://forums.ubports.com/post/85660</guid><dc:creator><![CDATA[AppLee]]></dc:creator><pubDate>Thu, 01 May 2025 16:13:27 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Thu, 01 May 2025 16:12:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applee" aria-label="Profile: AppLee">@<bdi>AppLee</bdi></a> Originally Online accounts could potentially be used for this. But I have never been able to figure out how to add a custom plugin for an app</p>
]]></description><link>https://forums.ubports.com/post/85659</link><guid isPermaLink="true">https://forums.ubports.com/post/85659</guid><dc:creator><![CDATA[arubislander]]></dc:creator><pubDate>Thu, 01 May 2025 16:12:54 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Thu, 01 May 2025 14:41:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applee" aria-label="Profile: AppLee">@<bdi>AppLee</bdi></a><br />
Isn't it a problem for any operating system ?<br />
I thougt that keepass provide API to access the password database.</p>
]]></description><link>https://forums.ubports.com/post/85657</link><guid isPermaLink="true">https://forums.ubports.com/post/85657</guid><dc:creator><![CDATA[Vlad Nirky]]></dc:creator><pubDate>Thu, 01 May 2025 14:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Thu, 01 May 2025 14:02:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/vlad-nirky" aria-label="Profile: Vlad-Nirky">@<bdi>Vlad-Nirky</bdi></a></p>
<p dir="auto">OP wanted a secure way to store user's password for the app to use.<br />
That's an issue with Ubuntu Touch as if a malicious actor can figure out the encryption method used and the key just by reading the sources.<br />
A solution would require a way to encrypt the password and ensure that only the intended and unaltered app can access it.</p>
<p dir="auto">Non trivial.</p>
]]></description><link>https://forums.ubports.com/post/85655</link><guid isPermaLink="true">https://forums.ubports.com/post/85655</guid><dc:creator><![CDATA[AppLee]]></dc:creator><pubDate>Thu, 01 May 2025 14:02:27 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Wed, 30 Apr 2025 05:38:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mchub" aria-label="Profile: mchub">@<bdi>mchub</bdi></a><br />
I use keepassxc and it works well.<br />
I share the database between all my devices.<br />
It's not working on Noble yet...</p>
]]></description><link>https://forums.ubports.com/post/85628</link><guid isPermaLink="true">https://forums.ubports.com/post/85628</guid><dc:creator><![CDATA[Vlad Nirky]]></dc:creator><pubDate>Wed, 30 Apr 2025 05:38:01 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Tue, 29 Apr 2025 20:04:19 GMT]]></title><description><![CDATA[<p dir="auto">Storing passwords in plain text isn’t ideal, even locally. Since you need to retrieve it later, you could encrypt it using something like AES tied to the username or device info. Also, make sure the file has strict permissions.</p>
]]></description><link>https://forums.ubports.com/post/85614</link><guid isPermaLink="true">https://forums.ubports.com/post/85614</guid><dc:creator><![CDATA[*mchub]]></dc:creator><pubDate>Tue, 29 Apr 2025 20:04:19 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Sat, 16 Nov 2024 00:37:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gwado" aria-label="Profile: gwado">@<bdi>gwado</bdi></a> Ah, Nextcloud music provides a Subsonic API. I was not aware.</p>
]]></description><link>https://forums.ubports.com/post/83454</link><guid isPermaLink="true">https://forums.ubports.com/post/83454</guid><dc:creator><![CDATA[arubislander]]></dc:creator><pubDate>Sat, 16 Nov 2024 00:37:42 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Fri, 15 Nov 2024 21:57:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arubislander" aria-label="Profile: arubislander">@<bdi>arubislander</bdi></a> the Nextcloud API does not allow you to retrieve Ampache/Subsonic identifiers from the Music application.</p>
]]></description><link>https://forums.ubports.com/post/83448</link><guid isPermaLink="true">https://forums.ubports.com/post/83448</guid><dc:creator><![CDATA[gwado]]></dc:creator><pubDate>Fri, 15 Nov 2024 21:57:20 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Tue, 12 Nov 2024 15:38:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gwado" aria-label="Profile: gwado">@<bdi>gwado</bdi></a> There is a nextcloud plugin in the Online Accounts setting. Could you not integrate your app with that?</p>
<p dir="auto">Here's some documentation to read up on about the Online Accounts[1]. It is still the old Canonical documentation, but I could not find the UBports mirror.</p>
<ol>
<li><a href="https://phone.docs.ubuntu.com/en/platform/guides/online-accounts-developer-guide" target="_blank" rel="noopener noreferrer nofollow ugc">https://phone.docs.ubuntu.com/en/platform/guides/online-accounts-developer-guide</a></li>
</ol>
]]></description><link>https://forums.ubports.com/post/83379</link><guid isPermaLink="true">https://forums.ubports.com/post/83379</guid><dc:creator><![CDATA[arubislander]]></dc:creator><pubDate>Tue, 12 Nov 2024 15:38:53 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Tue, 12 Nov 2024 13:49:13 GMT]]></title><description><![CDATA[<p dir="auto">dont you just get some token for login and store it, refresh it? i mean nextcloud desktop app is not asking me for password every run, and that is about all the stuff with oauth</p>
]]></description><link>https://forums.ubports.com/post/83378</link><guid isPermaLink="true">https://forums.ubports.com/post/83378</guid><dc:creator><![CDATA[uxes]]></dc:creator><pubDate>Tue, 12 Nov 2024 13:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s the best way to store a user password? on Tue, 12 Nov 2024 05:49:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gwado" aria-label="Profile: gwado">@<bdi>gwado</bdi></a> You could encrypt it with username and salt it. You could use something like PGP for that. The best way would be to save it to a file with read only permissions and owned by root.<br />
Does nextcloud support public-private key login? That would be ideal.</p>
<p dir="auto">For QML, there is the settings component which saves the variables in a file, but the content isn't readable with a simple cat (IIRC).</p>
<p dir="auto">There is a lot more information in this <a href="https://unix.stackexchange.com/questions/212329/hiding-password-in-shell-scripts" target="_blank" rel="noopener noreferrer nofollow ugc">Unix stackexchange thread</a>.</p>
]]></description><link>https://forums.ubports.com/post/83369</link><guid isPermaLink="true">https://forums.ubports.com/post/83369</guid><dc:creator><![CDATA[ikoz]]></dc:creator><pubDate>Tue, 12 Nov 2024 05:49:26 GMT</pubDate></item></channel></rss>