Skip to content

Instantly share code, notes, and snippets.

Avatar

GargantuaX GargantuaX

View GitHub Profile
@GargantuaX
GargantuaX / AesCipher.java
Created Nov 14, 2018
PHP和JAVA加密解密(AES,Base64 URL Safe)
View AesCipher.java
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
public class AesCipher {
private static String CIPHER_NAME = "AES/CBC/PKCS5PADDING";