Skip to content

Instantly share code, notes, and snippets.

View jlno's full-sized avatar
🏠
Working from home

Juliano jlno

🏠
Working from home
  • Brazil
View GitHub Profile
@jlno
jlno / rsa_encryption.java
Created June 27, 2018 14:45
how to encrypt & decrypt with RSA in Java
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import javax.crypto.Cipher;
public class Sample {