Skip to content

Instantly share code, notes, and snippets.

View crcrcr999's full-sized avatar
🏠
Working from home

JustTony crcrcr999

🏠
Working from home
View GitHub Profile
@debuggor
debuggor / Aes256Gcm.java
Last active September 15, 2020 07:27
ecdh key exchange ; aes-256-gcm
import org.bitcoinj.core.Utils;
import javax.crypto.Cipher;
import javax.crypto.spec.GCMParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.SecureRandom;
import java.util.Base64;
/**