Jump to content
Fivewin Brasil

Como se usa CHILKAT?


kapiaba

Recommended Posts

Bom dia ,

Essa biblioteca tem várias funcionalidades interessantes. Uma vez usei ela pra assinar um arquivo usando um certificado. O código ficou assim:

 

crypt := CreateObject( "Chilkat_9_5_0.Crypt2" )
success := crypt:UnlockComponent( "Anything for 30-day trial" )
crypt:SetSigningCert(cert)
crypt:HashAlgorithm := "sha256"

//  Indicate we want the opaque signature in base64 format:
crypt:EncodingMode := "base64"

//  Sign the string using the "utf-8" byte representation:
crypt:Charset := "utf-8"

//  Create the opaque signature:
json_envio := crypt:OpaqueSignStringENC(req_json)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...