List CSP Encryption Algorithms
Lists the encryption algorithms available for a CSP.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set csp = Server.CreateObject("Chilkat_9_5_0.Csp")
csp.SetProviderMicrosoftRsaAes
' Other commonly used CSPs can be selected with these
' methods:
' SetProviderMicrosoftBase
' SetProviderMicrosoftStrong
' SetProviderMicrosoftEnhanced()
' Otherwise the CSP can be selected by setting the ProviderName
' property to the exact name of the Cryptographic Service Provider.
numEncryptAlgs = csp.NumEncryptAlgorithms
For i = 0 To numEncryptAlgs - 1
Response.Write "<pre>" & Server.HTMLEncode( csp.GetEncryptionAlgorithm(i)) & "</pre>"
Next
' Sample output:
' RC2
' RC4
' DES
' 3DES TWO KEY
' 3DES
' AES 128
' AES 192
' AES 256
%>
</body>
</html>
|