Skip to content

Instantly share code, notes, and snippets.

View FrederikNS's full-sized avatar

Frederik Nordahl Jul Sabroe FrederikNS

View GitHub Profile
extern crate crypto;
use std::thread;
use self::crypto::digest::Digest;
use self::crypto::sha1::Sha1;
fn bytearrayhash(a: u8, b: u8, c: u8, d: u8) {
let mut hasher = Sha1::new();
let ip = [a, b, c, d];

Keybase proof

I hereby claim:

  • I am frederikns on github.
  • I am frederikns (https://keybase.io/frederikns) on keybase.
  • I have a public key whose fingerprint is FB8A 38C2 BDE7 A113 419A DE67 CEB1 4F06 9387 4DC3

To claim this, I am signing this object: