How to use JS packages in Qualtrics? | XM Community
Skip to main content
Solved

How to use JS packages in Qualtrics?

  • April 1, 2022
  • 1 reply
  • 133 views

Hi community,
I am a newbie and not so used to working with JS.
I am trying to hash an input string from an open-end survey question.
To be precise I want to encrypt it using SHA-512. I found this library after a google search - crypto-js - npm (npmjs.com)
But I am not sure how I can import it so that I can use its functions in my JS code on Qualtrics?
Sorry if my question was not clear, but coming from a python background my understanding is that for using external libraries/packages I need to import them first.
Any help is appreciated.

Best answer by rondev

We can use JsSHA, easy to implement.

1 reply

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • April 3, 2022

We can use JsSHA, easy to implement.