Better HN
topnewbestaskshowjobs
Log inSign up

valauran

18 karma · joined Dec 1, 2020 (6y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

Use argon2 or scrypt for password hashing. PBKDF2 or bcrypt are also acceptable, but prefer the first two in new systems. Make sure to use appropriate complexity factors.

A good starting point when trying to decide what crypto algorithm to use is https://latacora.micro.blog/2018/04/03/cryptographic-right-a...

comment 6y ago · link · parent

"shell=True"? Sloppy, mate, sloppy. Get in the habit of never doing that lest you find yourself vulnerable to a shell command injection attack one day.