package main import ( "hash" "golang.org/x/crypto/blowfish" ) var magic = []byte("OxychromaticBlowfishSwatDynamite") // blowfish hash type digest struct { c *blowfish.Cipher } func (d *digest) Write(p []byte) (n int, err error) { panic("not implemented") } func (d *digest) Sum(b []byte) []byte { panic("not implemented") } func (d *digest) Reset() { panic("not implemented") } func (d *digest) Size() int { panic("not implemented") } func (d *digest) BlockSize() int { return d.c.BlockSize() } func NewBHash() hash.Hash { d := &digest{} d.Reset() return d }