Skip to content

Instantly share code, notes, and snippets.

🎃

William Huang wilhg

🎃
Block or report user

Report or block wilhg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@guo-yu
guo-yu / airpub-cdn-index.html
Last active Aug 29, 2015
running a Airpub blog by only 40 lines of html code.
View airpub-cdn-index.html
<!DOCTYPE html>
<html ng-app="airpub" ng-controller="global">
<head ng-controller="meta">
<base href="/" />
<meta charset="UTF-8">
<title ng-bind="title"></title>
<meta name="fragment" content="!" />
<meta name="description" content="{{description}}">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- dependencies stylesheets and scripts -->
View ECCKeyAgreement.java
// The following code is from http://www.academicpub.org/PaperInfo.aspx?PaperID=14496 .
import java.math.BigInteger;
import java.security.*;
import java.security.spec.*;
import javax.crypto.KeyAgreement;
public class ECCKeyAgreement {
public static void main(String[] args) throws Exception {
KeyPairGenerator kpg;
kpg = KeyPairGenerator.getInstance("EC","SunEC");
@zcdziura
zcdziura / Crypto Test
Last active Sep 14, 2019
Encryption using Elliptic Curves and Diffie-Hellman key exchanges
View Crypto Test
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
import java.security.PublicKey;
You can’t perform that action at this time.