Hash Data

From 2008 SHA-1 hashes are not considered as safe anymore due to improved collision mechanism and the increasing performance of normal standard computer.

With the Aloaha Smart Card Connector Aloaha supplies the operating system with MD2, MD4, MD5, SHA-1, SHAMD5, SHA-256, SHA-384 and SHA-512. Suggested at the moment is to use SHA-256 instead of SHA-1. It works even on operating systems which usually do not support those hash types. For example Windows XP and Windows 2000.

Since Aloaha integrates into the operation system as Aloaha Cryptographic Service Provider all functions can be used via Microsoft Crypto API. 

Not everone is able to use the Microsoft Crypto API. For example it is not possible to use it from scripting. For those customer we implemented an easy to use automation compatible COM Object.

Please find below a code sample on how to use it from VBS. Data is hashed with SHA-256 in this example.


dim csp
dim data
dim result
dim HashType
dim InputType
Dim OutputType

InputType = 0          'UniCode
OutputType = 2       'HEX
HashType = 5          'SHA-256

set csp = createobject("aloahacsp.hash")

data="Aloaha"

result=csp.HASH(cstr(data), clng(HashType), clng(InputType), clng(OutputType))

msgbox result

set csp = nothing




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 APIAPIs 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