Skip to content

Add options to mask seeds using the pin#34

Open
dylex wants to merge 1 commit intomarkmcavoy:masterfrom
dylex:maskseed
Open

Add options to mask seeds using the pin#34
dylex wants to merge 1 commit intomarkmcavoy:masterfrom
dylex:maskseed

Conversation

@dylex
Copy link

@dylex dylex commented Nov 15, 2017

Currently seeds are stored cleartext in the database. This option allows greater security, since the seeds are no longer trivially recoverable without the pin if it is set. Also provides an even stronger security option to not validate the pin by not storing the hash at all. Instead, incorrect pins just produce incorrect seeds and thus incorrect tokens, making it very difficult to recover the original seeds. (Which of course has its downsides too, if you forget or mis-enter a PIN. We could require the PIN to be entered twice in this case instead.)

Various refactoring of hex conversion and pin management used therein.

This allows much greater security, since the seeds are no longer
trivially recoverable if this option is set without the pin.  Also
provides an even stronger security option to not validate the pin by not
storing the hash at all.  Instead, incorrect pins just produce incorrect
seeds and thus incorrect tokens, making it very difficult to recover the
original seeds.  (Which of course has its downsides too, if you forget
or mis-enter a PIN.  We could require the PIN to be entered twice in
this case instead.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant