Documentation ¶
Index ¶
- func EncryptMailMessage(key, body []byte) ([]byte, error)
- func EncryptRC4(data []byte, ciph *CipherRC4) []byte
- func FileExists(filename string) bool
- func FileStringReplace(FilePath string, Original string, Replace string) error
- func FileStringReplaceRegEx(FilePath string, RegEx string, Replace string) error
- func FileWriteBytes(FilePath string, Data []byte) error
- func FolderExist(path string) (bool, error)
- func GenerateUrlHash() string
- func GetMD5Hash(text string) string
- func GetMD5HashByte(text []byte) string
- func InsertIntoString(s string, interval int, sep rune) string
- func MakeSecureString(text string) string
- func MattermostSendMessage(url, hook, message string, isCode bool, warning bool) (string, error)
- func Message(status bool, message string) map[string]interface{}
- func PgpEncrypt(publicKeyring string, secretString string) (string, error)
- func RandIntBytes(n int) string
- func RandStringBytes(n int) string
- func Respond(w http.ResponseWriter, data map[string]interface{})
- func ReverseFloat64(input []float64) []float64
- func ReverseInts(input []int) []int
- func ReverseStrings(input []string) []string
- func RunCMD(Command string, Home string) (string, error)
- func SendGetTorRequest(url string) ([]byte, error)
- func SendPostTorRequest(url string, postData url.Values) ([]byte, error)
- func StringToFloat32(text string) (float32, error)
- func StringToFloat64(text string) (float64, error)
- func StringToUint(text string) (uint, error)
- func StringToUint64(text string) (uint64, error)
- type CipherRC4
- type KeySizeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptMailMessage ¶
EncryptMailMessage encrypts a mail with given public key.
func EncryptRC4 ¶
func FileStringReplace ¶
func FileStringReplaceRegEx ¶
func FileWriteBytes ¶
func FolderExist ¶
func GenerateUrlHash ¶
func GenerateUrlHash() string
func GetMD5HashByte ¶
GetMD5Hash generate md5 hash from []byte
func MakeSecureString ¶
func MattermostSendMessage ¶
func RandIntBytes ¶
func RandStringBytes ¶
func Respond ¶
func Respond(w http.ResponseWriter, data map[string]interface{})
Respond add headers to respond
func ReverseFloat64 ¶
func ReverseInts ¶
func ReverseStrings ¶
func SendGetTorRequest ¶
func StringToFloat32 ¶
func StringToFloat64 ¶
func StringToUint ¶
func StringToUint64 ¶
Types ¶
type CipherRC4 ¶
type CipherRC4 struct {
// contains filtered or unexported fields
}
func NewCipherRC4 ¶
func (*CipherRC4) XorKeyStreamGeneric ¶
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.