Password Authentication for Web and Mobile Apps

Password Authentication for Web and Mobile Apps

The Developer's Guide To Building Secure User Authentication

by Dmitry Chestnykh

Browse books you can read free on Readfeed

No club is reading this yet — be the first to start one

1 readers worldwide want to read this book

Start a club free
About
**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 addresses** - How 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 authentication** - How 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.

Discuss Password Authentication for Web and Mobile Apps with other readers

Join or start a book club for Password Authentication for Web and Mobile Apps on Readfeed. Live chat, shared reading progress, and AI discussion questions — free to get started.

Frequently asked questions

How do I join a book club for Password Authentication for Web and Mobile Apps?

Sign up free on Readfeed, then browse public clubs or start your own club with Password Authentication for Web and Mobile Apps as the current read. Invite friends with a share link and discuss together with live chat and AI discussion questions.

Can I discuss Password Authentication for Web and Mobile Apps with other readers online?

Yes. Readfeed book clubs let you chat live, share progress, and join discussions about Password Authentication for Web and Mobile Apps with readers worldwide — whether your club is virtual, in-person, or hybrid.

Is Readfeed free?

Yes. Creating an account and joining book clubs is free. Sign up to find readers who love the same books and start discussing today.