sha1Digest

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the sha1Digest of <message>
sha1Digest(<message>)
Summary

Computes a SHA-1 cryptographic message digest.

Introduced4.6
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
message

A binary data string.

Example
get the sha1Digest of "LiveCode"
put textEncode("Message to verify", "UTF-8") into tMessage
get sha1Digest(tMessage)
Values
NameTypeDescription
return

Returns the message digest of the message as a 20 byte binary data string.

RelatedFunction: md5Digest, messageDigest
Glossary: byte, function
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

Tagsmath