Skip to content

Instantly share code, notes, and snippets.

View Gladozzz's full-sized avatar
💭
Soon

Dmitriy Vlasov Gladozzz

💭
Soon
  • Russia, Nizhnevartovsk
View GitHub Profile
@rbrick
rbrick / JavaPGP.java
Created January 20, 2016 20:57
Simple Java implementation of PGP (Pretty Good Privacy)
import javax.crypto.Cipher;
import java.nio.ByteBuffer;
import java.security.GeneralSecurityException;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;