Crypto_GetDefaultProvider
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > Crypto > Crypto_GetDefaultProvider |
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
providerName = Crypto_GetDefaultProvider(nType)
Returns
String, default cryptographic service provider for given type.
Parameters
Name |
Type |
Optional |
Meaning |
nType |
Equate |
No |
One of the following values: %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 relies on Microsoft's Cryptographic Service Provider.
Restrictions
See also
Crypto_EnumProviders, Crypto_EnumProviderTypes, Crypto_GetProvidersCount
Examples
Uses "Crypto"
msgBox 0, "Default Provider for : " +
Crypto_GetDefaultProvider(%Crypto_PROV_RSA_FULL)