legacy

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: LGPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(ciphertext []byte, key []byte) (plaintext []byte)

AESDecrypt aes中的CFB解密

func AESEncrypt

func AESEncrypt(src []byte, key []byte) (ciphertext []byte)

AESEncrypt aes中的CFB加密

Types

type DefaultPasswordCipherHelper

type DefaultPasswordCipherHelper struct {
}

func (DefaultPasswordCipherHelper) Decrypt

func (client DefaultPasswordCipherHelper) Decrypt(encrypted, seed, key string) string

Decrypt 解密算法

func (DefaultPasswordCipherHelper) Encrypt

func (client DefaultPasswordCipherHelper) Encrypt(str, seed, key string) string

Encrypt 加密算法

type PasswordCipherHelper

type PasswordCipherHelper interface {
	Encrypt(str, seed, key string) string
	Decrypt(encryptedStr, seed, key string) string
}

func NewPasswordCipherHelper

func NewPasswordCipherHelper() PasswordCipherHelper

Jump to

Keyboard shortcuts

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