Documentation ¶
Index ¶
- func AESDecrypt(input []byte, key string) (bytes []byte, err error)
- func AESEncrypt(input []byte, key string) (bytes []byte, err error)
- func AESFortifiedDecrypt(value string, password string) (string, error)
- func AESFortifiedEncrypt(value string, password string) (string, error)
- func Base64Decode(src string) ([]byte, error)
- func Base64Encode(src []byte) string
- func IsBase64(value string) bool
- func PasswordFortify(password string) string
- func RequiredBlockLength(v int) int
- func StrRandom(length int) string
- func StrToMD5Hash(text string) string
- func StrToSHA1Hash(text string) string
- func StrToSHA256Hash(text string) string
- func XorDecrypt(encString string, key string) (output string, err error)
- func XorEncrypt(input, key string) (output string)
- func XorFortifiedDecrypt(value string, password string) (string, error)
- func XorFortifiedEncrypt(value string, password string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func PasswordFortify ¶
PasswordFortify performs multiple calculations on top of the password and changes it to a derivative long hash. This is done so that even simple and not-long passwords can become longer and stronger (256 characters). If password is longer than 255 it is left intact.
func RequiredBlockLength ¶
RequiredBlockLength calculates the block length required (128) to contain the provided length
func StrToMD5Hash ¶
func StrToSHA1Hash ¶
func StrToSHA256Hash ¶
func XorDecrypt ¶
XorDecrypt runs a XOR decryption on the input string
func XorEncrypt ¶
XorEncrypt runs a XOR encryption on the input string
func XorFortifiedEncrypt ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.