sha1Digest

Computes a SHA-1 cryptographic message digest.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 4.6 Security:

# Syntax

the sha1Digest of message

# Params

- message : A <binary data> string.

# Examples

get the sha1Digest of "LiveCode"

put textEncode("Message to verify", "UTF-8") into tMessage get sha1Digest(tMessage)

# Description

Compute a message digest of message using the SHA-1 cryptographic hash function.

> *Warning:* Serious flaws have been found in the SHA-1 hash algorithm > that make it unsuitable to use for security-critical purposes. > Unless you need backwards compatibility with existing systems, use > one of the other algorithms available with the messageDigest function

# Tags

# See

- **function:** md5Digest, messageDigest - **glossary:** byte, function