/ /

XtScript Function: sha1

Calculate the sha1 hash of a string.

XtScript sha1 is a function that will generate and return the SHA-1 (Secure Hash Algorithm) value of a string.

XtScript sha1 function basic syntax:

<!--parser:xtscript-->
	call sha1 $val=...
<!--/parser:xtscript-->

Learn XtScript sha1 function from examples

Encode string using SHA-1 standard using XtScript sha1 function.

- Code:
<!--parser:xtscript-->
	var $string = Good morning Everyone!
	var $sha1_string = call sha1 $val=$string

	print Message: $string <br/>
	print SHA-1 encrypted: $sha1_string
<!--/parser:xtscript-->
- Result:
Message: Good morning Everyone!
SHA-1 encrypted: e515dbb2abea925ff6a99a7eccfc06cca02274f5

Teya Salat