I did use crypto in a server side action in a private plugin successfully so I know it’s doable.

To test locally with node:

  • download node v14 from here Index of /download/release/v14.21.2/ for your operative system and install it (eg. if you are on windows it’s probably node-v14.21.2-x64.msi)
  • download and install vscode from here https://code.visualstudio.com/ (any editor will be ok, vscode it’s easy because it comes with an integrated terminal)
  • create a new folder, open vscode and open the folder with “file > open folder”
  • create a new file with “file > new text file”, then save as index.js in your folder
  • write the code in the file and save
  • open a new terminal with “terminal > new terminal”
  • run the script: write node index.js in the terminal and press enter
1 Like