package md5
import "crypto/md5"
Package md5 implements the MD5 hash algorithm as defined in RFC 1321.
MD5 is cryptographically broken and should not be used for secure applications.
Index ¶
Examples ¶
Constants ¶
const BlockSize = 64
The blocksize of MD5 in bytes.
const Size = 16
The size of an MD5 checksum in bytes.
Functions ¶
func New ¶
New returns a new hash.Hash computing the MD5 checksum. The Hash also implements encoding.BinaryMarshaler, encoding.BinaryAppender and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash.
func Sum ¶
Sum returns the MD5 checksum of the data.
Source Files ¶
md5.go md5block.go md5block_decl.go
Directories ¶
Path | Synopsis |
---|---|
crypto/md5/_asm |
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 13 minutes ago –
Tools for package owners.