-
Run the command below on your nodJS
npm install --save ts-md5
-
Then importing it directly in the component
-
Now you can write your code in the Constructor field or create a new function in Other Functions field
const md5 = new Md5(); let hash = md5.appendStr('hello').end(); console.log(hash);
Reference:
- https://github.com/cotag/ts-md5
- https://stackoverflow.com/questions/49470998/generate-md5-hash-in-angular-5
Last edit: 2021-10-28 12:08:02