Encrypt Function Reference

sDecryptText

Encrypt Function Reference | Example

This function decrypts a text string based on a given key.

Declare Function sDecryptText Lib "SapphireEncrypt.dll" (ByVal sSource As String, ByVal sDestination As String, ByVal sKey As String, ByVal lLicence As Long, ByVal bMessages As Byte) As Long

Parameters

  sSource
    A string specifying the encrypted text to decrypt.
  sDestination
    A variable to store the decrypted text into.
  sKey
    A string specifying the key that was used to encrypt the text. This may be considered as a password.
  lLicence
    A long specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.
  bMessages
    A byte flag stating whether to allow the utility to report to the user any messages.

Return Values

  Returns a number indicating success or failure where 0 is successful.