Documentation
¶
Index ¶
- func AESDecrypt(key *[]byte, cipherText []byte) (plainText []byte)
- func AESEncrypt(key *[]byte, plainText []byte) (cipherText []byte)
- func GetRequestContentFromRequest(req *http.Request) map[string]interface{}
- func GetRequestContentFromResponse(resp *http.Response) map[string]interface{}
- func IntRange(args ...int) <-chan int
- func IsPrime(number int64) bool
- func RandString(length int) string
- func RandStringWithCharset(length int, charset string) string
- func ShuffleByteSlice(slice []byte)
- func ShuffleIntSlice(slice []int)
- func ShuffleStringSlice(slice []string)
- func SieveOfEratosthenes(numberOfPrimes int64) []int64
- func UpArrow(base uint64, exponant uint64, upArrowAmount uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
Decrypts a text with aes in gcm mode nad returns it as a byte - array The nonce will be extract from the first 12 bytes from the cipherText
The key parameter represents the symmetric key which will be used to decrypt a text ¶
The cipherText parameter represents the text which will be encrypted
func AESEncrypt ¶
Encrypts a text with aes in gcm mode and returns it as byte - array For every encryption will be a new nonce (12 byte) generated and placed at the start of the ciphertext
The key parameter represents the symmetric key which will be used to encrypt a text ¶
The plainText parameter represents the text which will be encrypted
func RandString ¶
RandString returns functionCall StringWithCharset
func RandStringWithCharset ¶
RandStringWithCharset forms a string with the random seed and the charset
func SieveOfEratosthenes ¶
SieveOfEratosthenes returns an Slice of primenumbers smaller than the given paramter
Types ¶
This section is empty.