TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Key for chromium's encrypted cookies store in Linux is “peanuts”

111 pointsby TjWallasalmost 10 years ago

10 comments

teraflopalmost 10 years ago
This is misleading. If you follow the links to the Chromium bug tracker, you&#x27;ll note that Chrome integrates with the GNOME and KDE encrypted password managers when they&#x27;re available. If they&#x27;re not, it falls back to storing passwords itself with obfuscation, which is the best it can do. (On Windows and OS X, it uses CryptProtectData and the Keychain API, respectively.)<p><a href="https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;chromium&#x2F;wiki&#x2F;LinuxPasswordStorage" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;chromium&#x2F;wiki&#x2F;LinuxPasswordStorage</a>
评论 #9715021 未加载
评论 #9714943 未加载
评论 #9715075 未加载
评论 #9715747 未加载
评论 #9714917 未加载
userbinatoralmost 10 years ago
I guess a lot of others are also wondering, &quot;What&#x27;s the point?&quot;<p>If an attacker can read the file the cookies are stored in, you have already lost.<p>It even mentions &quot;obfuscation&quot; - which might be a <i>slight</i> obstacle if this was closed-source - but Chromium is open-source.
评论 #9714852 未加载
评论 #9715036 未加载
TjWallasalmost 10 years ago
Some more details from the source:<p>Password is: &quot;peanuts&quot; Salt is: &quot;saltysalt&quot; Algorithm used: AES-128-CBC The number of KDF iterations is: 1<p>Edit: Indicate that no. of iterations is for the Key Derivation Function
评论 #9714970 未加载
评论 #9714906 未加载
评论 #9714882 未加载
mschuster91almost 10 years ago
Well without having a user-specified master password like firefox has, you&#x27;re bound to use some &quot;pseudosecret&quot; keys.
评论 #9715157 未加载
评论 #9714866 未加载
Navarralmost 10 years ago
&quot;ksalt - at least salt is a variable, surely it at least is randomly generated, right?&quot;<p>&gt; &#x2F;&#x2F; Salt for Symmetric key derivation.<p>&gt; const char kSalt[] = &quot;saltysalt&quot;;
评论 #9714899 未加载
评论 #9714830 未加载
xiaqalmost 10 years ago
In related news, if you don&#x27;t have a key and a lock, you cannot really lock a door.
__mpalmost 10 years ago
I haven&#x27;t looked at the caller code but are you sure that only the cookie code is using this function? The function looks pretty generic and it might be used somewhere else as well...
elchiefalmost 10 years ago
Linux -&gt; Linus -&gt; (Charles Schultz) Peanuts-&gt; peanut?
评论 #9715984 未加载
bhaavanalmost 10 years ago
Well, atleast it goes well with the salt.
memborgalmost 10 years ago
mmmmhhhh. Salted peanuts