Skip to content

Instantly share code, notes, and snippets.

View GargantuaX's full-sized avatar

GargantuaX GargantuaX

View GitHub Profile
@GargantuaX
GargantuaX / AesCipher.java
Created November 14, 2018 07:33
PHP和JAVA加密解密(AES,Base64 URL Safe)
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";