3 ms·
Why not use base64 instead? 64 random characters are much better than 16. $ perl -e 'use Digest::SHA "sha256_base64"; print sha256_base64("master_password
by v_lisivka 9y ago
Why not use base64 instead? 64 random characters are much better than 16.
$ perl -e 'use Digest::SHA "sha256_base64"; print sha256_base64("master_password mail.google.com"), "\n";'
g/sOxZfr2DFE12r8Gs/D0bhwat5kku41L+kFmuCCQOo
- ecesena 9y agoThat's what I ended up for MemPa (described above). The idea is that I can't read binary sha256 output, and everything I know that can translate in hex can also translate in base64 leading to shorter secrets. For the special chars, I chose the Safari way of encoding, i.e. I only extract alpha-numberics from base64, and add a "-" every 3 chars. This also improves readability. I assume that if Apple chose this way of doing, either they studied it and/or sites will conform to that.