Skip to content

Instantly share code, notes, and snippets.

View shvshnkrpl's full-sized avatar

Shivshankar Pal shvshnkrpl

View GitHub Profile
@shvshnkrpl
shvshnkrpl / gist:dfc5de0e7bf82d584709
Created August 20, 2014 05:41
TDes encription/decription with key and IV.desed/cbc/pkcs5padding
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.Key;
import javax.crypto.Cipher;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESedeKeySpec;
import javax.crypto.spec.IvParameterSpec;
import java.util.Base64;
import java.util.Base64.Encoder;