Skip to content

Instantly share code, notes, and snippets.

View Kauavitorio's full-sized avatar

Kaua Vitorio Kauavitorio

View GitHub Profile
@iolo
iolo / CryptoUtil.java
Created June 23, 2015 09:54
aes encrypt/descrypt both java and node.js
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import java.security.Key;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Base64;