Categorygithub.com/masterZSH/mino
modulepackage
1.0.0
Repository: https://github.com/masterzsh/mino.git
Documentation: pkg.go.dev

# README

Instruction

Data encryption and Data decryption.

It can already be safely transferred across all systems.

Install

go get -u github.com/masterZSH/mino

Usage

// create a new key by pass and salt
k, err := mino.NewKey("myPass", "mySalt")

// Encrypt plaintext
cipherText, err := k.Encrypt(plainText)

// Decrypt ciphertext
plainText, err := k.Decrypt(cipherText)

Examples

1v1 command-line chat

# Packages

No description provided by the author

# Functions

DefaultKey returns default key.
NewKey create new key.

# Constants

KeyIter key iter.
KeyLen key length.

# Variables

ErrKey invalid key.
ErrMissKey miss key.
ErrMissSalt miss salt.

# Structs

Key encrypt and decrypt key.