Node.js crypto key and iv to match java SecretKeySpec / IvParameterSpec
问题 I'm trying to to port a Java (simple) encryption algorythm to Node JS. I will need to be able to decrypt/encrypt stuff encrypted/decrypted from the Java side. I'm stuck at the very beginning, the initialization of the cipher. In Java, I get the key with SecretKeySpec , and the Initialization Vector with IvParameterSpec : public CryptStuff(String password) throws zillion_exceptions { if (password==null) throw new InvalidKeyException("No encryption password is set!"); key = new SecretKeySpec