encoding & sha-1

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
sotos
Posts: 26
Joined: Fri Feb 09, 2018 11:25 pm

encoding & sha-1

Post by sotos » Mon Apr 08, 2019 10:07 pm

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

tsupartono

Re: encoding & sha-1

Post by tsupartono » Tue Apr 09, 2019 11:16 am

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.

sotos
Posts: 26
Joined: Fri Feb 09, 2018 11:25 pm

Re: encoding & sha-1

Post by sotos » Tue Apr 09, 2019 4:40 pm

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

Post Reply