函数参考


_Crypt_Shutdown

关闭加密库

#Include <Crypt.au3>
_Crypt_Shutdown()

参数

None.

返回值

None.

注意/说明

仅在已调用 _Crypt_Startup 时才需要调用该函数

相关

_Crypt_Startup

详情参考

在MSDN中搜索


示例/演示


#include <Crypt.au3>

_Crypt_Startup() ; To optimize performance start the crypt library, though the same results will be shown if it isn't.

Local $sData = "..upon a time there was a language without any standardized cryptographic functions. That language is no more." ; Data that will be hashed.

Local $sOutput = "The following results show the supported algorithms for retrieving the hash of the data." & @CRLF & @CRLF & _
        "Text: " & $sData & @CRLF & _
        "MD2: " & _Crypt_HashData($sData, $CALG_MD2) & @CRLF & _
        "MD4: " & _Crypt_HashData($sData, $CALG_MD4) & @CRLF & _
        "MD5: " & _Crypt_HashData($sData, $CALG_MD5) & @CRLF & _
        "SHA1: " & _Crypt_HashData($sData, $CALG_SHA1)

MsgBox(4096, "Supported algorithms", $sOutput)

_Crypt_Shutdown() ; Shutdown the crypt library.