Skip to content

Instantly share code, notes, and snippets.

@seanlindo
Created February 7, 2019 17:35
Show Gist options
  • Save seanlindo/0a7c4b5a132a627d973e9d1189bfbae6 to your computer and use it in GitHub Desktop.
Save seanlindo/0a7c4b5a132a627d973e9d1189bfbae6 to your computer and use it in GitHub Desktop.
Converting the object representation of a CryptoJS MD5 operation to a string
import CryptoJS from 'crypto-js'
const existingWordArray = { "words":[593801488,323531804,-1673786026,-853885382], "sigBytes":16 }
const md5Hash = CryptoJS.lib.WordArray.create(existingWordArray.words, existingWordArray.sigBytes).toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment