squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
auth
basic
NCSA
crypt_md5.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3
*
4
* Squid software is distributed under GPLv2+ license and includes
5
* contributions from numerous individuals and organizations.
6
* Please see the COPYING and CONTRIBUTORS files for details.
7
*/
8
9
/*
10
* Creates a MD5 based hash of a password
11
*
12
* To validate a entered password, use the previously calculated
13
* password hash as salt, and then compare the result. If identical
14
* then the password matches.
15
*
16
* While encoding a password the salt should be 8 randomly selected
17
* characters from the base64 alphabet, for example generated as follows:
18
* char salt[9];
19
* to64(salt, rand(), 4);
20
* to64(salt+4, rand(), 4);
21
* salt[0] = '\0';
22
*/
23
#ifndef _CRYPT_MD5_H
24
#define _CRYPT_MD5_H
25
26
char
*
crypt_md5
(
const
char
*pw,
const
char
*salt);
27
28
/* MD5 hash without salt */
29
char
*
md5sum
(
const
char
*s);
30
31
#endif
/* _CRYPT_MD5_H */
32
md5sum
char * md5sum(const char *s)
Definition:
crypt_md5.cc:183
crypt_md5
char * crypt_md5(const char *pw, const char *salt)
Definition:
crypt_md5.cc:54
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
pl
...
full list
FTP Package Archive