checksum utility in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gryffyn bb9ad5934c
fixed ci
3 weeks ago
checksum Refactored entire application again. Sorry. 3 weeks ago
kdf Added crypt, edited README 3 weeks ago
.drone.yml fixed ci 3 weeks ago
.gitignore Refactored application entirely, name change 3 weeks ago
LICENSE Added sha1, sha512, blake2b, blake3, xxhash 1 month ago
README.md Added crypt, edited README 3 weeks ago
go.mod Added crypt, edited README 3 weeks ago
go.sum Refactored entire application again. Sorry. 3 weeks ago
main.go Added crypt, edited README 3 weeks ago

README.md

cself

PkgGoDev Build Status

Fork of checksum.

Computes checksum (such as SHA256) from files or stdin in Go. Uses chunking to support large files.

Computes key from KDFs (such as Argon2id) with either given parameters or sane defaults.

Usage

binary

§ cself -h
NAME:
   cself - generate hashes for files, passwords, and stdin

USAGE:
   cself [COMMAND] [OPTIONS]

COMMANDS:
   list-alg, l  list algorithms
   hash, h      hash mode
   kdf, h       hash mode

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

library

package main

import (
	"fmt"
	"git.neveris.one/gryffyn/cself/checksum"
)

func main() {
	file := "~/Downloads/ubuntu-gnome-16.04-desktop-amd64.iso"
	md5, _ := checksum.MD5sum(file)
	fmt.Println(md5)
	sha256, _ := checksum.SHA2sum(file, 256)
	fmt.Println(sha256)
}

Algorithms

Hash functions

md5
sha1
sha2-224
    -256
    -384
    -512 
sha3-224
    -256
    -384
    -512 
blake2b-256
       -384
       -512
blake3-256
      -384
      -512
xxhash-32
      -64

KDFs

argon2i
argon2id
scrypt
pbkdf2
bcrypt
crypt-sha512

Defaults

See cself kdf -h.

License

checksum is distributed under the terms of the MIT license. See LICENSE for details.