Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: [HANA XS] error when interpreting javascript

$
0
0

Hi Vasil,

 

thank you for the information!

 

I found a BSD licensed JavaScript lib with HMAC SHA hash functions  (Paj's Home: Cryptography: JavaScript MD5: Scripts) and could get it to run on HANA XS after some tweaking and thanks to your hint about the missing support for the |= operator.

 

After some more research, I found information about unofficial crypto features (https://community.wdf.sap.corp/message/401867#401867 ) that also include the HMAC SHA1 method:


// Calculate HMACSHA1-Value (160 Bits) which is returned as a Buffer of 20 Bytes

var hmacSha1ByteBuffer = $.util.crypto.hmacSha1(inPassword, inValue);

// Encode ByteBuffer to Base64-String

var base64hmacSha1String =  $.util.convert.encodeBase64(hmacSha1ByteBuffer);

 

So I will try to use these for now, hoping that they will become official eventually.

 

Cheers,

Steffen


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>