This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
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)