Encrypts a variant.

 

   
Syntax
 
     

outEncrypted = Crypto.Encrypt(inData)

 

   
Params
 
     
Name   Type   Description
inData Variant The variant to encrypt.
Return Variant The encrypted data.

 

   
Notes
 
     

Encrypts a variant.

The type of variant returned is always the same as the type that was provided. So if you provide a string for encryption the returned value is also a string. If you provide an integer for encryption the returned value is also an integer.

If you provide an empty or NULL variant for encryption an empty variant will be returned.

ABCCrypto supports the following variant types.

  • Byte
  • Boolean
  • Integer
  • Long
  • Single
  • Double
  • Currency
  • Date
  • String
  • Array of Bytes (BLOB)
   
See Also
 
     

Crypto Decrypt function.