Skip to content

Instantly share code, notes, and snippets.

AES-NI instruction found in some modern CPU's
https://en.wikipedia.org/wiki/AES_instruction_set
OpenSSL and AES-NI
http://openssl.6102.n7.nabble.com/having-a-lot-of-troubles-trying-to-get-AES-NI-working-tp44285p44309.html
$ openssl speed -elapsed -evp aes-128-cbc
You have chosen to measure elapsed time instead of user CPU time.
Doing aes-128-cbc for 3s on 16 size blocks: 98821624 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 26674959 aes-128-cbc's in 3.00s
async
bedrock
bedrock-consumer
bedrock-credentials-mongodb
bedrock-credentials-rest
bedrock-docs
bedrock-express
bedrock-identity
bedrock-mail
bedrock-mongodb
async
bedrock
bedrock-credential-curator
bedrock-credentials-mongodb
bedrock-credentials-rest
bedrock-docs
bedrock-express
bedrock-identity
bedrock-idp
bedrock-mail
  1. Sign-up (Join) at the Identus Identity Provider: https://demo-idp.identus.org/ (note: You do not need to use a legitimate email address.)
  2. During this process, you will also be setting up an account at Authorization.io which represents a future browser API and a WebDHT which are currently implemented as a polyfill and a centralized database.
  3. Issue yourself credentials at the Identus Issuer: https://demo-issuer.identus.org/
  4. Utilize your credentials for various purposes at Identus Consumer: https://demo-consumer.identus.org/
Credential Type Consumer Use
Driver's License Open a new bank account
Loyalty Card Purchase winter clothes
Passport Buy an airline ticket
IDENTITY {
"@context": "https://w3id.org/identity/v1",
"id": "did:234715f6-93ef-4791-bac4-c25911d90887",
"type": "Identity",
"credential": {
"@graph": {
"@context": "https://w3id.org/identity/v1",
"id": "urn:uuid:c73a6139-8268-4bfe-9cd7-a696b5ad8058",
"type": [
"Credential",
@mattcollier
mattcollier / assign.js
Created January 2, 2016 13:06
lodash assign test
var _ = require('lodash');
var history = {
BYZ: {someData: 'original'},
ABC: {someData: 'originalABC'}
};
var revision = {
BYZ: {someData: 'revisedBYZ'},
ABC: {someData: 'revisedABC'},
@mattcollier
mattcollier / keybase.md
Last active January 6, 2016 13:23
keybase.md

Keybase proof

I hereby claim:

  • I am mattcollier on github.
  • I am matthewcollier (https://keybase.io/matthewcollier) on keybase.
  • I have a public key whose fingerprint is 5E21 7599 CC29 D099 8ECF 3F1B 14F2 FC4B 77E7 9680

To claim this, I am signing this object:

function sc(s){
var upperCaseLetters = [];
var lowerCaseLetters = [];
var letters = s.split('');
letters.forEach(function(letter, index) {
if(letter === letter.toUpperCase()) {
upperCaseLetters.push(letter);
return;
}
lowerCaseLetters.push(letter);
var lastDigit = function(str1, str2){
var x = Number(str1.substr(str1.length - 1));
if(Number(str2) === 0) {
return 1;
}
if([0, 1, 5, 6].indexOf(x) >= 0) {
return x;
}
if([4,9].indexOf(x) >= 0) {
function mix(s1, s2) {
const LETTERS = 'abcdefghijklmnopqrstuvwxyz';
var letterMap = {};
var letters = [];
//console.log(mapString(string1));
var map1 = mapString(s1.replace(/[^a-z]/g, ''));
var map2 = mapString(s2.replace(/[^a-z]/g, ''));
LETTERS.split('').forEach(function(e) {
if(e in map1 && e in map2) {
if(map1[e] > 1 && map1[e] > map2[e]) {