Michael Pope
07/03/2024, 9:32 PMvar cipher = crypto.createCipher({
algorithm: crypto.EncryptionAlg.AES,
key: crypto.createSecretKey({
encoding: encode.Encoding.UTF_8,
secret: 'custsecret_stored_in_netsuite_secrets'
}),
padding: crypto.Padding.PKCS5Padding
})
cipher.update({
input: JSON.stringify(data)
})
var encrypted_result = cipher.final({
outputEncoding: encode.Encoding.HEX
})
//deliver encrypted_result.iv and encrypted_result.ciphertext to Node.js
battk
07/03/2024, 9:57 PMMichael Pope
07/03/2024, 10:43 PMbattk
07/03/2024, 10:49 PMbattk
07/03/2024, 10:50 PMbattk
07/03/2024, 10:50 PMMichael Pope
07/03/2024, 10:54 PMbattk
07/03/2024, 10:57 PMbattk
07/03/2024, 10:57 PMbattk
07/03/2024, 10:59 PMbattk
07/03/2024, 11:00 PM