# `md5`

_Message Digest hash_
```syntax
md5 x    md5[x]
```

Where `x` is a string (a char vector), returns its [MD5 (Message-Digest algorithm 5)](https://en.wikipedia.org/wiki/MD5) hash as a bytestream.
```q
q)md5 "this is a not so secret message"
0x6cf192c1938b79012c323fa30e62787e
q)md5 ""
0xd41d8cd98f00b204e9800998ecf8427e
```

MD5 is a widely used hash function, described in [RFC 1321](https://www.rfc-editor.org/rfc/rfc1321), that computes a 128-bit hash, commonly used to check the integrity of files. Don't use it for security purposes, such as storing passwords or creating digital signatures, because MD5 is vulnerable to collision attacks.

----

[Strings](by-topic.md#strings)
