Hashing Passwords: Why MD5 and SHA Are Outdated, and Why You Should Use Scrypt or Bcrypt
📝 #NoteToSelf: Write an #scrypt key backend for #gitAnnex to securely store secrets in a #git repository. The default (unsalted #SHA256 with the file size known) is good for file integrity but not ideal for secrets.
Feedback/comments needed.
(if anyone read this..)
I did a simple password hashing golang package that i’ll use to store passwords.
Leveraging « modern » password hash primitives: argon2id / scrypt.
I tried to be careful in parameters for the key derivation, but scared to fuck up badly...
(And started a C interoperable version as well but not finished/published yet).
A quick (few hours) attempt at making password hashing/comparison modern and simple in go based code/services in a small package relying on standard go library/implementation:
Https://github.com/unix4fun/passwd
Filling my own needs, work in progress, but may be other go ppl would be interested.
#golang #argon2 #scrypt #KISS