Lianja
Lianja
RSA Import Public Key
See more RSA Examples
Shows how to select/import a public key for RSA encryption or signature verification.Chilkat Lianja Downloads
llSuccess = .F.
loPubKey = createobject("CkPublicKey")
// In all Chilkat methods expecting a path, you pass either absolute or relative paths.
llSuccess = loPubKey.LoadFromFile("rsaKeys/myTestRsaPublic.pem")
if (llSuccess = .F.) then
? loPubKey.LastErrorText
release loPubKey
return
endif
loRsa = createobject("CkRsa")
// Tell RSA to use the public key.
loRsa.UsePublicKey(loPubKey)
release loPubKey
release loRsa