Skip to content

Instantly share code, notes, and snippets.

View robstrong's full-sized avatar

Rob Strong robstrong

  • Wunderkind (formerly BounceX)
  • Charleston, SC
View GitHub Profile
@robstrong
robstrong / decrypt.java
Created September 4, 2025 18:28
AES-256 GCM Encrypt/Decrypt in Java and Go
import javax.crypto.Cipher;
import javax.crypto.spec.GCMParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
public class main {
public static final Integer IV_LENGTH_ENCRYPT = 12;