crypter

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 8 Imported by: 0

README

ngr-crypter

crypter module ''' import "github.com/NGRsoftlab/ngr-crypter" '''

Documentation

Overview

Copyright 2020 NGR Softlab

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key []byte, text string) (string, error)

func Decrypt2

func Decrypt2(key []byte, encMessage []byte) ([]byte, error)

func Encrypt

func Encrypt(key []byte, text string) (string, error)

func Encrypt2

func Encrypt2(key []byte, message []byte) ([]byte, error)

func PKCS5Padding

func PKCS5Padding(cipher []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(src []byte) []byte

func Pad

func Pad(src []byte) []byte

func UnPad

func UnPad(src []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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