Skip to content

Instantly share code, notes, and snippets.

@saggit
saggit / keybase.md
Last active September 10, 2019 00:11

Keybase proof

I hereby claim:

  • I am saggit on github.
  • I am xmrim (https://keybase.io/xmrim) on keybase.
  • I have a public key ASDIqL9XXwDbnbrwsOxB6eBCiJU6A8ZkHFF-97dHXYIPkwo

To claim this, I am signing this object:

@saggit
saggit / eapi.rs
Created January 19, 2018 10:37 — forked from fredhsu/eapi.rs
Using Rust/Hyper to do a HTTP Post with JSON
extern crate hyper;
extern crate core;
use std::io::Read;
use hyper::Client;
use hyper::header::Connection;
use hyper::header::Basic;
use hyper::header::Headers;
use core::str::FromStr;
@saggit
saggit / main.go
Created June 14, 2015 12:57
Go implement werkzeug generate_password_hash check_password_hash with help of golang.org/x/crypto/pbkdf2 package
package main
import (
"crypto/rand"
"crypto/sha1"
"encoding/hex"
"fmt"
"golang.org/x/crypto/pbkdf2"
"strings"
)