Page 1 of 1

encoding & sha-1

Posted: Mon Apr 08, 2019 10:07 pm
by sotos
Hello all,

I need the following operations executed on a string on the order:

result = base64(sha-1(utf8bytes(my_string)

up to now I have discovered through LANSA RDML Extended Library the following:

FromBase64String, AsBase64String and
AsStringUsingUTF8, FromStringUsingUTF8 within type XPRIM_Binary which presumably correspond to base64 and utf8bytes respectively.

but what about sha-1?

In LANSA RDML Extended Library there is only XPRIM_Crypto_Hash which supports sha-256 but not sha-1.

Does Lansa somehow support sha-1 hash cryptographic function?

best,
Sotiris

Re: encoding & sha-1

Posted: Tue Apr 09, 2019 11:16 am
by tsupartono
We can add SHA-1 algorithm to XPRIM_CryptoHash. It will be included in the next EPC - which will be released in the next month or so.
If you need it urgently, we can provide a pre-release package for you.
Contact LANSA Support to log the request.

Re: encoding & sha-1

Posted: Tue Apr 09, 2019 4:40 pm
by sotos
thanks,

It is not a matter of uttermost urgency but we would certainly like to have this feature with the next EPC. I will contact my local lansa support.

best,
Sotiris