Jump to ratings and reviews
Rate this book

Password Authentication for Web and Mobile Apps: The Developer's Guide To Building Secure User Authentication

Rate this book
Authenticating users with passwords is a fundamental part of web and mobile security. It is also the part that’s easy to get wrong. This book is for developers who want to learn how to implement password authentication correctly and securely. It answers many questions that everyone has when writing their own authentication system or learning a framework that implements it.Store passwords securely What is the best password hashing function for your app?How many bytes of salt should you use?What is the optimal password hash length?How to encode and store hashes?When to pepper and encrypt hashes and how to do it securely?How to avoid vulnerabilities in bcrypt, PBKDF2, and scrypt, and which Argon2 version to use?How to update password hashes to keep up with Moore’s law?How to enforce password quality?Remember users How to implement secure sessions that are not vulnerable to timing attacks and database leaks?Why is it a bad idea to use JWT and signed cookies for sessions?How to allow users to view and revoke sessions from other devices?Verify usernames and email addressesHow to verify email addresses and why is it important? How Skype failed to do it and got hacked.How to avoid vulnerabilities caused by Unicode?How to disallow profanities and reserved words in usernames?Add multi-factor authenticationHow to implement two-factor authentication with TOTP and WebAuthn/U2F security keys?How to generate recovery codes? How long should they be?How to rate limit 2FA and why not doing it breaks everything?Also…How to create accessible registration and log in forms?How to use cryptography to improve security and when to avoid it?How to generate random strings that are free from modulo bias?The book applies to any programming language. It explains concepts and algorithms in English and provides references to relevant libraries for popular programming languages.

144 pages, Kindle Edition

Published May 27, 2020

3 people are currently reading
15 people want to read

About the author

Dmitry Chestnykh

1 book1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
8 (72%)
4 stars
2 (18%)
3 stars
1 (9%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Emanuele Parrinello.
74 reviews
July 20, 2024
A concise book, suitable for both juniors (as an introduction to the subject) and seniors (as a checklist)
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.