Skip to content

Instantly share code, notes, and snippets.

View chozee's full-sized avatar
👋
I may be slow to respond.

ᴬᴰAstra⚕ chozee

👋
I may be slow to respond.
View GitHub Profile
@chozee
chozee / 0_reuse_code.js
Created March 20, 2017 07:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chozee
chozee / RsaExample.java
Created March 10, 2017 07:06 — forked from nielsutrecht/RsaExample.java
Example of RSA generation, sign, verify, encryption, decryption and keystores in Java
import javax.crypto.Cipher;
import java.io.InputStream;
import java.security.*;
import java.util.Base64;
import static java.nio.charset.StandardCharsets.UTF_8;
public class RsaExample {
public static KeyPair generateKeyPair() throws Exception {
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");