e-CryptIt Engine Xojo Plugin |
|
EinhugurEd25519.Verify Method
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"
var keys as new EinhugurEd25519.KeyPair()
var signature as String = EinhugurEd25519.Sign(message,keys)
MessageBox("Signature: " + EndOfLine + EncodeHex(signature))
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 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS
See Also
EinhugurEd25519 Module