Skip to content

Instantly share code, notes, and snippets.

View mindicrafter's full-sized avatar
🤒
Out sick

mindicrafter mindicrafter

🤒
Out sick
View GitHub Profile
@mindicrafter
mindicrafter / AesEncryptor.java
Created November 12, 2018 17:29
Java AES Encryption
import org.apache.commons.codec.binary.Base64;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;
import java.security.GeneralSecurityException;

Keybase proof

I hereby claim:

  • I am mindicrafter on github.
  • I am mindicrafter (https://keybase.io/mindicrafter) on keybase.
  • I have a public key ASAB_auMUkdJSGueMcrOF7AiEbPlQC-ipu3PXNerx3EGBwo

To claim this, I am signing this object: