Javascript/NodeJS equivalent code for the Java code Cipher.doFinal(byte[])?
I am migrating some server-side Java code to a new NodeJS server. I am looking for an equivalent method call in Javascript to Java's Cipher.doFinal(byte[]) Note that I can't use NodeJS Buffers because they don't support negative Byte values. So to do my encryption, I'll need a method that accepts an array of positive and negative numbers. Here's all of what I currently have that is related to this problem: Node JS / Javascript: var crypto = require('crypto'); var cipher = crypto.createCipher('aes256',key); Java (javax.crypto.Cipher): Cipher cipher; SecretKeySpec skeySpec = new SecretKeySpec