eyhash

package module
v0.0.0-...-0271af0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

eyhash

Simple hashing module and CLI program for easy file and directory hashing.

Hashing

  • MD5
  • SHA1
  • SHA256
  • SHA512

Usage

$ eyhash <filename/directory> -f/-d [file/directory]

# Output
FileName: test.txt, Size: 22 bytes, ModTime: 2024-08-05 00:28:36.2926994 +0700 +07
MD5: ecc8c106ae46e1f89be3f12fa1352952
SHA1: ce86972a7a726bad768121c36e50e832e98343b7
SHA256: 951ed50ee98965f335a087777e5ffa6bc171f1ebde1b3b8dd22608409d04f5a2
SHA512: c141a290be00e73a46c3f20f67e4d10ae68a74fc895acbc82749001a347d75dcdf35b53a14752698a1517f8333bf82591ffe817bbb817d183768385cc59dbb9e

License

Copright (c) 2024 GarudaProject. Licensed under the Apache License, Version 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD5File

func MD5File(path string) (string, error)

func SHA1File

func SHA1File(path string) (string, error)

func SHA256File

func SHA256File(path string) (string, error)

func SHA512File

func SHA512File(path string) (string, error)

Types

type Info

type Info struct {
	Name    string
	Size    int64
	ModTime time.Time
}

func FileInfo

func FileInfo(path string) (*Info, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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