iCrypto_SHA1

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Crypto >

iCrypto_SHA1

 

Description

 

Returns a SHA1 hash string.

 

Syntax

 

hash = iCrypto_SHA1(sText)

 

Returns

 

String, calculated hash.

 

Parameters

 

Name

Type

Optional

Meaning

sText

String

No

input text

 

Remarks

 

Restrictions

 

See also

 

iCrypto_MD5, iCrypto_TestSHA1

 

Examples

 

Uses "Crypto"

 

String sText = "This is my secret"

String sHash = iCrypto_SHA1(sText)

 

msgbox 0, sText + $CRLF + sHash