Documentation ¶
Index ¶
Constants ¶
View Source
const AesKeyPepper = "bridgx"
Variables ¶
View Source
var ( ErrEncryptFailed = errors.New("encrypt failed") ErrDecryptFailed = errors.New("decrypt failed") )
View Source
var ( ErrWrongPepperOrSalt = errors.New("wrong pepper or salt") ErrRestoreTextFailed = errors.New("restore text failed") )
Functions ¶
func AESEncrypt ¶
func ObfuscateText ¶ added in v0.2.1
ObfuscateText will obfuscate text with pepper and salt.
func RestoreText ¶ added in v0.2.1
RestoreText will restore obfuscated text with pepper and salt.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.