Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

StringCompareEncrypted() Function

  • Last UpdatedNov 05, 2021
  • 1 minute read

Compares an encrypted string with an unencrypted string and returns a Boolean result. You can use this function for password verification. For more information on password encryption, see Animate objects.

Syntax

result = StringCompareEncrypted (plain, encrypted)

Parameters

plain

A literal string, message tagname, or string expression.

encrypted

An encrypted message tagname.

Example(s)

This script returns 1 when the plain text and the encrypted text are identical, otherwise it returns 0. Passwd is a message tag containing a value from an encrypted user input. PlainTxt is a message tag against which the user input is to be compared.

StringCompareEncrypted(PlainTxt, Passwd)

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in