encrypt

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesDecryptFromBase

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

DesDecryptFromBase base64 decoding, and decrypt with priKey

func DesEncryptToBase

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

DesEncryptToBase encrypt with priKey simply, out base64 string

func PKCS5Padding

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

PKCS5Padding size padding

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

PKCS5UnPadding size unpadding

Types

This section is empty.

Jump to

Keyboard shortcuts

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