Encrypt Function Reference

sDecryptFile

Encrypt Function Reference | Example

This function decrypts a file based on a given key.

<DllImport("SapphireEncrypt.dll")> _
Public Function sDecryptFile(ByVal sSource As String, ByVal sDestination As String, ByVal sKey As String, ByVal lLicence As Integer, ByVal bMessages As Byte) As Integer
End Function

Parameters

  sSource
    A string specifying the name of the encrypted file to dencrypt.
  sDestination
    A string specifying the name of the file to create with the decrypted content.
  sKey
    A string specifying the key that was used to encrypt the file. This may be considered as a password.
  lLicence
    An integer 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.