gsha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gsha1 provides useful API for SHA1 encryption algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encrypt

func Encrypt(v interface{}) string

Encrypt encrypts any type of variable using SHA1 algorithms. It uses gconv package to convert <v> to its bytes type.

func EncryptFile

func EncryptFile(path string) (encrypt string, err error)

EncryptFile encrypts file content of <path> using SHA1 algorithms.

func MustEncryptFile

func MustEncryptFile(path string) string

MustEncryptFile encrypts file content of <path> using SHA1 algorithms. It panics if any error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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