Background
Passwords are one of the most useful things to memorise, yet Anki has no real support for them or other sensitive data. There are basically two options users have:
- Create notes with their passwords in cleartext. In case anyone isn’t aware: Don’t do this. Both AnkiWeb and your local collection can too easily expose this information to attackers, or you might even accidentally leak (export) it yourself.
- Create notes with a prompt, but no back side. While without a doubt the wiser choice, such a card is only useful as a reminder, and unless you’re 100% sure to have correctly recalled the answer, you’ll have to go and check, which is hopefully more laborious than looking at a note on your desk.
The Solution
Every company you have a password for cares deeply about your data privacy and only stores a secure hash of your password. (Just kidding, but wouldn’t it be nice if they did.)
Anki could offer a dedicated notetype with a Password field to do exactly that: Any content entered into this field wouldn’t be committed to the database, instead it would be hashed and only the result stored.
The notetype would have one card template that prompts the user to type in the answer, but unlike the existing notetype, the back side would only tell the user “correct” or “wrong”, as only the hashes are compared.
The main point is to not store the password itself, but there could be another field to show a password hint, and maybe the card could even let the user try different passwords (to a certain extent), until they remember the right one.
What about an Add-on?
At a first glance, it looks like this feature could be provided by an add-on, or even a custom notetype, but there are a few reasons why I don’t think this would work:
- Most users can’t read the source code to make sure an add-on doesn’t do anything malicious, so they would have to trust the add-on author. And even users who can would have to recheck after every update. It’s far more likely that people would trust Anki itself—and rightly so.
- I’m pretty sure there are people who put cleartext passwords in Anki, just because they don’t know any better. An add-on wouldn’t reach these users, but an in-built feature might raise awareness. It would be nice if Anki helped users to protect themselves.
- I imagine it would be hard to protect against other malicious add-ons. This might even be hard to do for Anki itself, but probably less so.
- Adding new notes would only be possible on the desktop app, because some kind of custom dialog would be required.
Questions
@all, would you use such a feature? Are there current alternatives I’m not aware of?
@dae, do you think this would fit into Anki?