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".


Aloaha Software / Knowledge Base / Smart Card API / Aloaha CSP API / Usefull helper functions for scripting languages
create PDF Software

Usefull helper functions for scripting languages

Any questions?
Aloaha Software - Usefull helper functions
ProductsKnowledge BaseShopSupportPress
Deutsche VersionEnglish version