crypter

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 9 Imported by: 1

README

ngr-crypter

crypter-masking module

import

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

examples

see crypte_test.go file

tests

just run go test

Documentation

Overview

Copyright 2020-2024 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