---
name: "md5crypt"
section: "3trf"
platform: "linux"
package: "tcl-trf-doc"
version: "2.1.4-dfsg3-8"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/md5crypt/3trf"
---

# md5crypt(3trf)

Password hashing based on "md5"

## NAME

md5crypt - Password hashing based on "md5"

## SYNOPSIS

package require **Tcl  ?8.2?**

package require **Trf  ?2.1.3?**

**md5crypt** *password* *salt*

## DESCRIPTION

The command **md5crypt** is for the encryption of passwords and uses *md5* as hash algorithm. An alternative command for the same function, but based on the older **[crypt(3)](/crypt/3.md)** hash function is **crypt**.

- **md5crypt** *password* *salt*

  Encrypts the *password* using the specified *salt* and returns the generated hash value as the result of the command.

## SEE ALSO

crypt, trf-intro

## KEYWORDS

authentication, crypt, hash, hashing, mac, md5, message digest, password

## COPYRIGHT

```
Copyright (c) 1996-2003, Andreas Kupries <andreas_kupries@users.sourceforge.net>
```
