Usefull helper functions for scripting languages

It is whished by Aloaha that as much as possible programming languages are supported by the Aloaha APIs. 

Since not all programming language are able to work with memory pointers to byte arrays or byte arrays as such the Aloaha CSP API includes some helper functions for type conversion.



All functions explained on this page DO NOT require a valid license key and are freeware!


BA2STR

This function converts a ByteArray into a one byte string.

For example:

Dim OutputString as string
Dim InputArray(0 to 1) as byte

InputArray(0)=asc("A")
InputArray(1)=asc("B")

OutputString = ACSP.BA2STR(InputArray)

OutputString will be "AB"


STR2BA

This function converts a String into a ByteArray.

For example:

Dim OutputArray() as Byte
Dim InputString as String

InputString = "AB"

OutputArray = ACSP.STR2BA(InputString)

OutputArray will contain 2 bytes with the Ascii Value of "A" and "B"


HEX2STR

This function converts a HEX String into a "normal" String. For example "4142" to "AB".


STR2HEX

This function converts a "normal" String into a HEX String. For example "AB" to "4142".


Please ask...

Although we really tried hard, there are always questions left open.

Please send us your question.
We would be glad to answer it.
PDF SDKPDF Form Saver SDKSmart Card APIAloaha CSP APICSP General InformationLoading of CSP APIUsefull helper functions for scripting languagesCertificate ManagementCertificate UsageCertificate ParserDigital Signature FunctionsData EncryptionAPIs and samplesPin Pad Notifier Pluginp7m / p7s CreationCDO to S/MimeCreate S/Mime PKCS7Create / Validate PKCS #7Create CMS (PKCS #7)Show Card CertificatesADPU TesterSmart Card TesterTimestamp PKCS7 SignatureDES EncryptionHash DataXML HelperEnumerate Card ReaderMifareAloaha Web ServicesAloaha Print MonitorAloaha Remote ConfigurationWebDAVLDAP ClientProgramming Office MacrosIIS Event Sinks