Skip to Content
Mastering Python for Networking and Security
book

Mastering Python for Networking and Security

by José Manuel Ortega
September 2018
Intermediate to advanced
426 pages
10h 46m
English
Packt Publishing
Content preview from Mastering Python for Networking and Security

HTTP Digest Authentication

HTTP Digest is a mechanism used to improve the basic authentication process in the HTTP protocol. MD5 is normally used to encrypt user information, key, and realm, although other algorithms, such as SHA, can also be used in its different variants, which improve the security. It is implemented in Apache web servers with the mod_auth_digest module and the htdigest utility.

The process that a client must follow to send a response that results in access to a protected resource is:

  • Hash1= MD5(“user:realm:password”)
  • Hash2 = MD5(“HTTP-Method-URI”)
  • response = MD5(Hash1:Nonce:Hash2)

Digest-based access authentication extends basic-access authentication by using a one-way hashing cryptographic algorithm (MD5) to first encrypt ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python for Networking and Security - Second Edition

Mastering Python for Networking and Security - Second Edition

José Manuel Ortega
Python for Cybersecurity

Python for Cybersecurity

Howard E. Poston, III

Publisher Resources

ISBN: 9781788992510Supplemental Content