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


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.

Aloaha Software