Crypto.SHA1

From Xojo Documentation

Method

Crypto.SHA1(data As MemoryBlock) As MemoryBlock

New in 2012r2

Supported for all project types and targets.

Returns the SHA1 hash value of the data.

Notes

Refer to SHA1 on Wikipedia.

This is equivalent of calling the Hash method with SHA1 as the algorithm:

Var encryptedValue As String
encryptedValue = Crypto.Hash("DataToEncrypt", Crypto.Algorithm.SHA1)