Instant Java Password and Authentication Security
By Fernando Mayoral
Publisher: Packt Publishing
Final Release Date: November 2013
Pages: 40

In Detail

Password security is a critical matter when it comes to protecting the interests of application users and their data for a satisfactory user experience. With the advancement in technology, now more than ever, application developers need to be able to implement reliable mechanisms to prevent passwords from being stolen. Java Password and Authentication Security provides a practical approach to implement these reliable mechanisms with the possibility to make password authentication stronger as technology makes it easier to break them.

Java Password and Authentication Security is a practical, hands-on guide covering a number of clear, step-by-step exercises and code examples that will help you to implement strong password authentication solutions for your project in no time.

This book starts off with the most basic and well known hashing technique to quickly get an application developer started with implementing a standard password protection mechanism. Furthermore, it covers the stronger SHA (standard hashing algorithm) family in detail and brings up a technique to improve the hash security with a technique called “salting”.

You will also learn how to use these hashes, and more importantly, when to use each technique. You will learn that not every hash algorithm is good in every situation, and how to deal with password recovery, password authentication, and timing attacks.


Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. This book takes a hands-on approach to Java-based password hashing and authentication, detailing advanced topics in a recipe format.

Who this book is for

This book is ideal for developers new to user authentication and password security, and who are looking to get a good grounding in how to implement it in a reliable way.

It’s assumed that the reader will have some experience in Java already, as well as being familiar with the basic idea behind user authentication.

Product Details
Recommended for You
Customer Reviews


by PowerReviews
oreillyInstant Java Password and Authentication Security

(based on 1 review)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 1 customer

Displaying review 1

Back to top


Excellent, But Narrowly Focused

By Bill Horvath

from Sylvania, OH

About Me Developer, Maker


  • Accurate
  • Concise
  • Easy to understand
  • Helpful examples
  • Short
  • Well-written


  • Expensive

Best Uses

  • Expert
  • Intermediate
  • Novice
  • Student

Comments about oreilly Instant Java Password and Authentication Security:

This book provides excellent coverage of a very narrow topic: how to securely calculate a one-way hash of plain-text data, which effectively encrypts it. By doing so, you can both create hashes for new passwords, and compare hashes of passwords entered in a login to those stored in user account records to see if they match.

It's important to note that this book is only about hash-based (one-way) encryption; it DOES NOT cover decrypting the stored data. This is preferable for authentication, when all you need to do is see if the hashes of the stored and entered passwords are the same, however if you need to be able to decrypt the data, you should look elsewhere for a solution.

Displaying review 1

Back to top

Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Ebook:  $19.99
Formats:  ePub, Mobi, PDF