encrypt

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Disabled = ""
)

Functions

func DesDecryptFromBase

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

DesDecryptFromBase base64 decoding, and decrypt with priKey

func DesEncryptToBase

func DesEncryptToBase(src []byte) (b []byte, err 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