e-CryptIt Engine Xojo Plugin |

# EinhugurEd25519.Verify Method (console safe)

Verifies message signature using public key.

Verify(
message as String,
signature as String,
publicKey as String) as Boolean

#### Parameters

message
  The message to be verified.
signature
  The signature to be verified.
publicKey
  The public key to use to verify.

#### Returns

Boolean
  True if the message signature verified authentic, else false.

#### Remarks

var message as String = "Some important message"
// Create key pair. (If not passing in seed then random seed is automatically generated)
var keys as new EinhugurEd25519.KeyPair()
// Sign our message with the key pair (Private and public key)
var signature as String = EinhugurEd25519.Sign(message,keys)
MessageBox("Signature: " + EndOfLine + EncodeHex(signature))
// Verify the signature with public key only. (Since person who verifies would only have the public key)
if EinhugurEd25519.Verify(message, signature, keys.PublicKey) then
MessageBox("Signature was valid")
else
MessageBox("Signature was not valid")
end if
This function can throw InvalidArgumentException if the key is of incorrect size.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS

#### See Also

EinhugurEd25519 Module