/** * @NApiVersion 2.x * @NScriptType Suitelet */ define([‘N/crypto’, ‘N/log’], function (crypto, log) { function onRequest(context) { let textToHash = ‘Sample Text’; let hash = crypto.hash({ algorithm: crypto.HashAlg.SHA256, input: textToHash }); log.debug(‘Hashed Value:’, hash); context.response.write(‘SHA-256 Hashed Value: ‘ + hash); } return { onRequest: onRequest }; }); How It Works The crypto.hash() function takes… Continue reading How to Hash Data in NetSuite Using the N/crypto Module