Skip to content

Instantly share code, notes, and snippets.

var test = require('tape')
const randomBytes = require('randombytes')
const bip39 = require('bip39')
test('generate wallet mnemonic', function (t) {
t.test('some bip39 experiments: can we "revert" "BytesToWords" with "WordsToBytes" like in TestCheckTypoDetection', function (t) {
// see https://github.com/tendermint/go-crypto/blob/906331a8d1661a504dc0eb2618a8767363fddb7c/keys/words/wordcodec_test.go#L146-L178
var strength = 128
for (var i = 0; i < 3400; i++) {
@liamsi
liamsi / certs.bro
Last active April 10, 2017 14:38
Intercept TLS handshakes and log hash, domain name, and base64 encoded cert (as JSON fields) into kafka
@load base/protocols/ssl
@load Bro/Kafka/logs-to-kafka.bro
module TLSFun;
export {
# Append the value LOG to the Log::ID enumerable.
redef enum Log::ID += { LOG };
type Info: record {

Keybase proof

I hereby claim:

  • I am liamsi on github.
  • I am ismailk (https://keybase.io/ismailk) on keybase.
  • I have a public key whose fingerprint is 2BC7 09FB D0E5 0EB2 D727 2AD8 760D A791 7109 FB7B

To claim this, I am signing this object:

@liamsi
liamsi / elagamal_test.go
Created January 21, 2016 21:24
Additively homomorphic ElGamal
package dlog
import (
"errors"
"fmt"
"github.com/dedis/crypto/abstract"
"github.com/dedis/crypto/nist"
"github.com/dedis/crypto/random"
)