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.

Show HN: Tiny password manager with all data stored encrypted on your machine

30 pointsby whatl3yalmost 5 years ago

14 comments

woodruffwalmost 5 years ago
I haven&#x27;t looked at the crypto yet, but some tips as someone who&#x27;s designed a few password managers[1][2]:<p>* Don&#x27;t allow the user to supply their password via argv. The names and argument vectors of running processes aren&#x27;t considered privileged information, and the password can be inadvertently leaked or cached by e.g. a process auditing system. Instead, have the user provide their password via standard input.<p>* Consider a different interface for the master password. An environment variable isn&#x27;t the worst, but has some of the same leakage problems that argv does. &quot;Best practice&quot; here is to either use the system keychain or an agent-style helper program.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;kbsecret&#x2F;kbsecret" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kbsecret&#x2F;kbsecret</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;woodruffw&#x2F;kbs2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;woodruffw&#x2F;kbs2</a>
评论 #23809466 未加载
评论 #23808723 未加载
评论 #23810178 未加载
fofonialmost 5 years ago
What&#x27;s the difference between this and <a href="https:&#x2F;&#x2F;www.passwordstore.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.passwordstore.org&#x2F;</a> ?
评论 #23803971 未加载
评论 #23804168 未加载
fortyalmost 5 years ago
Making project is a great way to learn stuff, so congrats!<p>I had a look at your crypto code, and the usual advice would be not to roll out your own crypto. Of course, since we are here to learn, that does not apply, so instead here are a few pointers on things you might want to learn about:<p>- authenticated encryption<p>- key derivation functions<p>- secure hash algorithms<p>I found this pretty good and pretty accessible <a href="https:&#x2F;&#x2F;www.crypto101.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.crypto101.io&#x2F;</a><p>Good learning!
评论 #23807341 未加载
arkadiytalmost 5 years ago
This seems dangerous to use? Just a few issues looking at the code:<p>- No master password is required - if you don&#x27;t set one a default value of &quot;hide&quot; is used<p>- The description says it uses AES256 (it is the default) but the code lets you specify your own algorithm, and supports ECB mode and even Triple DES<p>- When an algorithm requires a (for instance) 32 byte key, and your master password is larger than 32 bytes, it will just take the first 32 bytes and ignore the rest. If your master password is less than 32 bytes, it will just keep concatenating your password with itself until it gets 32 bytes: <a href="https:&#x2F;&#x2F;github.com&#x2F;whatl3y&#x2F;hide&#x2F;blob&#x2F;master&#x2F;src&#x2F;libs&#x2F;Encryption.ts#L131-L135" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;whatl3y&#x2F;hide&#x2F;blob&#x2F;master&#x2F;src&#x2F;libs&#x2F;Encrypt...</a>
评论 #23803207 未加载
tzsalmost 5 years ago
1. Why are all the output lines in the examples in the &quot;Usage&quot; section prefixed with &#x27;# &#x27;? The output lines in the examples later for individual commands are not prefixed that way.<p>2. It might be useful to have an option for show to just show the password. Perhaps -P (upper case P). E.g.,<p><pre><code> $ hide show -n facebook.com -P my_password1 </code></pre> I&#x27;d expect that most of the time people use -p to retrieve the password they are going to copy&#x2F;paste it into a browser. With a password-only option they could pipe to something that puts it on the clipboard. A Mac user, for exampled, could use<p><pre><code> $ hide show -n facebook.com -P | pbcopy </code></pre> It would also be useful with commands line tools that take a password on the command line:<p><pre><code> $ some_tool --password=$(hide show -n some_tool -P) </code></pre> or with commands that read the password from a file<p><pre><code> $ other_command --pwfile &lt;(hide other_command -n some_tool -P)</code></pre>
评论 #23810070 未加载
kohtatsualmost 5 years ago
Couldn&#x27;t find a PBKDF, closest code-wise I could find is this; <a href="https:&#x2F;&#x2F;github.com&#x2F;whatl3y&#x2F;hide&#x2F;blob&#x2F;1c3aaca634f504c3c274bac6a184b8783cd72df8&#x2F;src&#x2F;libs&#x2F;Encryption.ts#L131" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;whatl3y&#x2F;hide&#x2F;blob&#x2F;1c3aaca634f504c3c274bac...</a><p>Edit: looks like you had bcrypt then decided to remove it?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;whatl3y&#x2F;hide&#x2F;commit&#x2F;0a8262d50929366bdd9ae4de280cdb90cc8cd6a8" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;whatl3y&#x2F;hide&#x2F;commit&#x2F;0a8262d50929366bdd9ae...</a><p>You don&#x27;t need to compare, just feed the resulting hash to AES and see if the output is any good.
评论 #23804490 未加载
cell9840179419almost 5 years ago
If someone pwns your m&#x2F;c they can &quot;search&quot; and get all password right, what am I missing? May be you should prompt for the master key instead of exporting? Or you are depending on the fact export goes away with the term session?
评论 #23802112 未加载
ishchekleinalmost 5 years ago
Nice! I&#x27;ve been using <a href="https:&#x2F;&#x2F;pwsafe.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pwsafe.org&#x2F;</a> + Dropbox for quite a while. Is it similar, what are the new features?
kazbotalmost 5 years ago
Ive got to say. The title looked interesting. But when I see that .vscode has been checked in, I lose a bit of confidence that this is going to be 100% secure.
评论 #23809972 未加载
nix23almost 5 years ago
Nah, if we talk about tiny, take the &#x27;standard unix password manager&#x27; :<p><a href="https:&#x2F;&#x2F;www.passwordstore.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.passwordstore.org&#x2F;</a><p>Otherwise <a href="https:&#x2F;&#x2F;keepassxc.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;keepassxc.org&#x2F;</a>
nabarazalmost 5 years ago
I have been using keypass for years. I have a flash drive with a key file and keypass software that gets synced to my personal drive everytime I plug in.<p>I plug it in, enter my master password and right click to copy password to paste it on websites.
Snawootalmost 5 years ago
How application which requires NPM could be considered &quot;tiny&quot;?
agustifalmost 5 years ago
I&#x27;m stuck at 1Password 6 on the mac, hate the new subscription model for everything
评论 #23808779 未加载
评论 #23803239 未加载
hijefalmost 5 years ago
I like Bitwarden&#x27;s CLI too, but this is cool as well. Nice work :-)
评论 #23809767 未加载