crypt

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encryptedString string, cipherMethod string, key string, iv string) (string, error)

расшифровать строку

func Encrypt

func Encrypt(src string, cipherMethod string, key string, iv string) (string, error)

зашифровать строку

func PKCS5Padding

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

превращаем слайс байтов в слайса 8-байтовых блоков, требуемых для алгоритма шифрования

func PKCS5Trimming

func PKCS5Trimming(encrypt []byte) []byte

конвертим слайс расшифрованных байтов в удобоваримый вид

Types

This section is empty.

Jump to

Keyboard shortcuts

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