crypt_md5.cc File Reference
#include "squid.h"
#include "auth/basic/NCSA/crypt_md5.h"
#include "md5.h"
#include <cstring>
Include dependency graph for crypt_md5.cc:

Go to the source code of this file.

Functions

static void md5to64 (char *s, unsigned long v, int n)
 
char * crypt_md5 (const char *pw, const char *salt)
 
char * md5sum (const char *s)
 

Variables

static unsigned char itoa64 []
 

Function Documentation

◆ crypt_md5()

char * crypt_md5 ( const char *  pw,
const char *  salt 
)

Definition at line 54 of file crypt_md5.cc.

References md5to64(), SquidMD5Final(), SquidMD5Init(), and SquidMD5Update().

Referenced by main().

◆ md5sum()

char * md5sum ( const char *  s)

Definition at line 183 of file crypt_md5.cc.

References SquidMD5Final(), SquidMD5Init(), and SquidMD5Update().

Referenced by main().

◆ md5to64()

static void md5to64 ( char *  s,
unsigned long  v,
int  n 
)
static

Definition at line 35 of file crypt_md5.cc.

References itoa64.

Referenced by crypt_md5().

Variable Documentation

◆ itoa64

unsigned char itoa64[]
static
Initial value:
=
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Definition at line 32 of file crypt_md5.cc.

Referenced by md5to64().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors