crypto

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 7 Imported by: 0

README

go-crypto

Introduction

If you need basic cryptographic functions to secure data from within your application, but have no clue about the details of cryptography, this library is for you! You don't want your code to contain a lot of lines of code that handle weird object types and strange APIs that have nothing to do with your actual business logic? This library aims to be taking care about all details without messing up your code and without requiring you to be a guru in cryptography or computer science in general. This very first version supports only a few cryptographic hash functions and will be extended over time.

Hashing
- MD5 
- SHA1
- SHA256
- SHA384
- SHA512
- RIPEMD160

License

Release under the MIT License. (see LICENSE)

Codacy Badge

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD5

func MD5(data string) string

MD5 (data) return MD5-Hash of given string

func RIPEMD160

func RIPEMD160(data string) string

RIPEMD160 (data) return RIPEMD160-Hash of given string

func SHA1

func SHA1(data string) string

SHA1 (data) return SHA1-Hash of given string

func SHA256

func SHA256(data string) string

SHA256 (data) return SHA256-Hash of given string

func SHA384

func SHA384(data string) string

SHA384 (data) return SHA386-Hash of given string

func SHA512

func SHA512(data string) string

SHA512 (data) return SHA512-Hash of given string

Types

This section is empty.

Jump to

Keyboard shortcuts

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