How to load keys.
Loading of a key is an operation of loading of a file (or
from string) with a key into memory. Private keys need a password, public keys do not.
Private or public keys can be loaded with LoadKey or LoadKeyFromString function. This operation usually takes
place at the beginning of encryption / decryption. At the end of work the key should be
explicitly freed with the FreeKey function. To load the private
key, you should specify a password, otherwise the function will fail with ERR_ERRREADINGKEY.
Keeping the private key on server does not make a big
security risk, since the current technology level makes it impossible to produce a private
key within reasonable period of time. Private keys are stored with a password. The longer
is the password, the more time it is needed to bruteforce it.
|