javascript java Hmac256

For authentication purposes we generate a hash by using the Hmac256 hash function from the community commons. It uses a key (password) and a string to generate the hash. The request hash uses the same key and same string and will be generated from javascript. Servers side is the Mendix application, which uses the java Hmac256 The problem is that the results are not equal. Does anybody know the javascript function which generates the same result as the java Hmac256
1 answers

Did you try using the Google crypto-js library?