Crypto

From Xojo Documentation

Module

Contains hashing methods for use with cryptography.

Methods
BERDecodePrivateKey Hash RSASign
BERDecodePublicKey MD5 RSAVerifyKey
DEREncodePrivateKey PBKDF2 RSAVerifySignature
DEREncodePublicKey RSADecrypt SHA1
GenerateRandomBytes RSAEncrypt SHA256
HMAC RSAGenerateKeyPair SHA512

Notes

Uses Crypto++ Library 5.6.5.

Use the Crypto.HashAlgorithms enumeration with the Hash method to specify the type of hash:

  • MD5: MD5 message-digest algorithm.
  • SHA1: SHA-1 produces a 160-bit (20-byte) hash value.
  • SHA256: SHA-2 with 256 bit digest.
  • SHA512: SHA-2 with 512 bit digest.