Skip to content

Instantly share code, notes, and snippets.

View oyorjuelar's full-sized avatar

Omar Yecid Orjuela Rodriguez oyorjuelar

View GitHub Profile
@joeolaoye
joeolaoye / TripleDES.java
Last active June 6, 2022 08:41
A class to encrypt and decrypt using 3DES in java
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;