Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicPythonRubySQL ServerSwiftTclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.js

Visual Basic 6.0 Examples

Async
Certificates
ECC
Email Object
Encryption
FTP
HTML-to-XML/Text
Gzip
HTTP
IMAP
JSON
MHT / HTML Email
PEM
PFX/P12
Java KeyStore (JKS)
POP3
RSA Encryption
MIME
REST
SCP
SMTP
Socket/SSL/TLS
SSH Key
SSH
SFTP
Stream
Tar Archive
XML
XMP
Zip

More Examples...
Google APIs
Google Cloud Storage
Azure Cloud Storage
Amazon S3 (new)
Google Drive
ASN.1
PRNG
Amazon S3
Bounced Email
CSV
Diffie-Hellman
DKIM / DomainKey
DSA
NTLM
QuickBooks

 

 

 

 

 

 

 

(Visual Basic 6.0) URL Signing for Google Maps API

Demonstrates how to sign a URL for the Google Maps API.

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

Dim crypt As New ChilkatCrypt2

'  Any string argument automatically begins the 30-day trial.
Dim success As Long
success = crypt.UnlockComponent("Anything for 30-day trial.")
If (success <> 1) Then
    Text1.Text = Text1.Text & crypt.LastErrorText & vbCrLf
    Exit Sub
End If

'  The output will be modified Base64.
'  Modified Base64 for URLs replaces the '+' and '/' characters
'  of standard Base64 with '-' and '_' respectively, so that these
'  Base64 signatures no longer need to be URL-encoded.
crypt.EncodingMode = "modBase64"

'  NOTE: At the time of this writing, the "modBase64" encoding mode is
'  available in the pre-release build only.  Send email to
'  support@chilkatsoft.com if you need a pre-release.  This feature will be
'  included in the next official release.

'  Set the hash algorithm to sha-1
crypt.HashAlgorithm = "sha-1"

Dim sig As String

'  Set the HMAC key (this is the private key provided by Google)
crypt.SetHmacKeyEncoded "vNIXE0xscrmjlyV-12Nj_BvUPaw=","modBase64"

'  Compute the URL signature
sig = crypt.HmacStringENC("/maps/api/geocode/json?address=New+York&sensor=false&client=clientID")

'  The result should be KrU1TzVQM7Ur0i8i7K3huiw3MsA=
Text1.Text = Text1.Text & sig & vbCrLf

 

© 2000-2016 Chilkat Software, Inc. All Rights Reserved.