Documentation ¶
Index ¶
- Constants
- func AESCBCDecrypt(ciphertext, key []byte) ([]byte, error)
- func AESCBCEncrypt(plaintext, key []byte) ([]byte, error)
- func AESCFBDecrypt(path, password string, rename bool) error
- func AESCFBEncrypt(path, password string, rename bool) error
- func AESGCMDecrypt(ciphertext, key []byte) ([]byte, error)
- func AESGCMEncrypt(plaintext, key []byte) ([]byte, error)
- func Base64Decode(data string) ([]byte, error)
- func Base64Encode(data []byte) string
- func CheckErr(err error)
- func DecodePrivateKey(key []byte) (*rsa.PrivateKey, error)
- func Generate(bits int) (*rsa.PrivateKey, error)
- func GetBasePath(path string) string
- func GetFileName(path string) string
- func GetInput(s string) string
- func GetPassword() []byte
- func HmacSha1(publicKey, privateKey string) []byte
- func HmacSha256(publicKey, privateKey string) []byte
- func Md532(data string) []byte
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(plaintext []byte) []byte
- func Pbkdf2Sha256(data, salt string, iterations int) string
- func RSADecrypt(source []byte, privateKey []byte) ([]byte, error)
- func RSAEncrypt(source []byte, publicKey []byte) ([]byte, error)
- func RSASign(origdata string, privateKey []byte) (string, error)
- func RSAVerify(origdata, ciphertext string, publicKey []byte) (bool, error)
- func SHA1(data string) []byte
- func SHA256(data string) []byte
- func SHA384(data string) []byte
- func SHA512(data string) []byte
- func SaveFile(path string, data []byte) error
- func SaveKey(privateKey *rsa.PrivateKey) error
- func ScanFile(path string) (*list.List, error)
- func Stringify(privateKey *rsa.PrivateKey) (string, string, error)
- func ValidateFile(file string) bool
Constants ¶
View Source
const Extension = ".encrypt"
Variables ¶
This section is empty.
Functions ¶
func GetBasePath ¶
func GetFileName ¶
func GetPassword ¶
func GetPassword() []byte
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func SaveKey ¶
func SaveKey(privateKey *rsa.PrivateKey) error
func ValidateFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.