Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rohan 105 posts 162 karma points
    Mar 10, 2015 @ 06:58
    Rohan
    0

    how to use nodejs require('crypto') in Umbraco webpage ?

    Hi

    I need to use "nodejs" on my umbraco project.

    For image manipulation , we are using Aviary SDK scripts. To generate / save high resolutions image using Aviary, it require some authentication stuff (https://developers.aviary.com/docs/web/high-resolution#authentication)

    Now if you see 'Signature Generation Example' on above given site, you can see some line of code. I have implemented it on my umbraco webpage (cshtml template). But on the line "var crypto = require('crypto'); " alwayz returns NULL .

    We require some cryptography stuff for high resolution images. So can anyone please help me here howw to "require('crypto') " ? Do i need to add any external script ? Do i need to add any utlilities from Visual Studio Package Manger ?

    It's really urgent. Your help would be greatly appreciated !!

    Thanks,

    rohan dave

Please Sign in or register to post replies

Write your reply to:

Draft