Navigation:  thinBasic Modules > Crypto >

Crypto_GetDefaultProvider

Previous pageReturn to chapter overviewNext page

 

Description

 

The Crypto_GetDefaultProvider() function returns the default cryptographic service provider (CSP) of a specified provider type.

The CSP can be the default for either for the current user or for the computer.

 

Syntax

 

Crypto_GetDefaultProvider(nType AS NUMBER) AS STRING

 

Returns

 

Returns AS STRING

The name of default cryptographic service provider.

 

Parameters

 

Name

Type

Optional

Meaning









nType AS NUMBER

Specifies the provider type for which the default CSP name is to be found. Defined provider types are as follows:

    %Crypto_PROV_RSA_FULL

    %Crypto_PROV_RSA_SIG

    %Crypto_PROV_DSS

    %Crypto_PROV_FORTEZZA

    %Crypto_PROV_MS_EXCHANGE

    %Crypto_PROV_SSL

    %Crypto_PROV_RSA_SCHANNEL

    %Crypto_PROV_DSS_DH

    %Crypto_PROV_DH_SCHANNEL

 

Remarks

 

This functions relys on Microsoft's Cryptographic Service Provider.

 

Restrictions

 

 

See also

 

Crypto_EnumProviders, Crypto_EnumProviderTypes, Crypto_GetProvidersCount

 

Examples

 

MsgBox 0, "Default Provider for : " + Crypto_GetDefaultProvider()

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com