cself

command module
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 14 Imported by: 0

README

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.SHA256sum(file)
	fmt.Println(sha256)
}

Algorithms

Hash functions
md5
sha1
sha256
sha512
sha3-224
xxhash-32
xxhash-64
blake2b-256
blake2b-512
blake3-256
blake3-512
KDFs
argon2i
argon2id
scrypt (tarsnap format)
scrypt
pbkdf2
bcrypt

Defaults

See cself kdf -h.

License

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package checksum computes checksums, like MD5 or SHA256, for large files
Package checksum computes checksums, like MD5 or SHA256, for large files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL