Classic ASP Framework
org.classicasp.util.ChilkatUtilEx.ChilkatCryptUtilEx

Chilkat encryption utility. < www.chilkatsoft.com/refdoc/xChilkatCrypt2Ref.html >

Summary

Creates an Chilkat.
Advanced Encryption Standard (AES) file-to-file decryption.
Advanced Encryption Standard (AES) file-to-file encryption.
Hashes a file.
Computes an HMAC using a secret key and hash algorithm.
Checks to see if the Chilkat.
Checks to see if the Chilkat.
Returns the version of the Chilkat.

CreateObject

Public Function CreateObject()
Creates an Chilkat.Crypt2 ActiveX Object.

Returns

Object

file_decrypt_aes

Public Function file_decrypt_aes(
ByRef sPath,
ByRef sPassword,
ByRef lKeyLength)
Advanced Encryption Standard (AES) file-to-file decryption. There is no limit to the size of the file that can be decrypted because the component will operate in streaming mode internally.

Returns

BooleanEx

file_encrypt_aes

Public Function file_encrypt_aes(
ByRef sPath,
ByRef sPassword,
ByRef lKeyLength)
Advanced Encryption Standard (AES) file-to-file encryption. There is no limit to the size of the file that can be encrypted because the component will operate in streaming mode internally.

Returns

BooleanEx

hash_file

Public Function hash_file(
ByRef sHashAlgorithm,
ByRef sPath)
Hashes a file. The hash algorithm to be used is controlled by the HashAlgorithm property, which can be set to "sha1", "sha384", "sha512", "md2", "md5", or "haval". The function returns the hash as a hex encoded string. Any size file is supported because the file is hashed internally in streaming mode.

Returns

BooleanEx

hash_hmac

Public Function hash_hmac(
ByRef sHashAlgorithm,
ByRef sValue,
ByRef sPassword)
Computes an HMAC using a secret key and hash algorithm. The hash algorithm to be used is controlled by the HashAlgorithm property, which can be set to "sha1", "sha384", "sha512", "md2", "md5", or "haval". The result is a hex encoded string. Produces the same results as the PHP hash_hmac function < php.net/manual/en/function.hash-hmac.php >.

Returns

BooleanEx

installed

Public Function installed()
Checks to see if the Chilkat.Crypt2 ActiveX Object is installed.

Returns

BooleanEx

licensed

Public Function licensed()
Checks to see if the Chilkat.Crypt2 ActiveX Object is licensed, Application("/License/Activex/Chilkat.Crypt2").

Returns

BooleanEx

version

Public Function version()
Returns the version of the Chilkat.Crypt2 ActiveX Object if it is installed.

Returns

StringEx

'***ClassicASP.org
'Copyright 2010 ClassicASP.org

'This file is part of ClassicASP Framework.

'ClassicASP-Framework is free software: you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation, version 3 of the License.

'ClassicASP-Framework is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with ClassicASP-Framework. If not, see .

'For additional information please visit .