Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
List CSP Encryption Algorithms This ASP script lists the encryption algorithms provided by the Microsoft Enhanced CSP <html>
<head>
<title>List Encryption Algorithms</title>
</head>
<body>
<%
set csp = Server.CreateObject("ChilkatUtil.ChilkatCSP")
' Select the Microsoft Enhanced Cryptographic Service Provider
csp.SetProviderMicrosoftEnhanced
' List the encryption algorithms provided by the Enhanced Microsoft CSP.
' A sample output looks like this:
'Encryption Algorithms:
'0: RC2(128 bits)
'1: RC4(128 bits)
'2: DES(56 bits)
'3: 3DES TWO KEY(112 bits)
'4: 3DES(168 bits)
Response.write "<b>Encryption Algorithms:</b><br>"
n = csp.NumEncryptAlgorithms
for i = 0 to n-1
Response.Write i & ": " & csp.GetEncryptionAlgorithm(i)
Response.Write "(" & csp.GetEncryptionNumBits(i) & " bits)<br>"
next
%>
</body>
</html>
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.