Versions in this module Expand all Collapse all v1 v1.1.1 Oct 7, 2022 Changes in this version + func GenerateRandomPin() string + func GetRandomName() string + func GetRandomNameWithPin() string + func GetRandomName_Sized(size int) (rname string) v1.1.0 Sep 29, 2022 Changes in this version + const G + const M + func MakeRamdisk(diskSize int64) (mountVolume string) v1.0.0 Sep 27, 2022 Changes in this version + const FileChunk + var Reader rngReader + func BigIntn(n *big.Int) *big.Int + func ByteArrayToInt(arr []byte) int + func ByteArrayToInt16(arr []byte) int16 + func ByteArrayToInt32(arr []byte) int32 + func ByteArrayToInt64(arr []byte) int64 + func Bytes(n int) []byte + func CreateRamdisk(diskSize int) (mountVolume string) + func DestroyRamdisk(mountPoint string) + func DumpFileToScreen(fileName string) + func EightByteArrayToInt(arr []byte) int + func EightByteArrayToInt32(arr []byte) int32 + func Entropy128() [16]byte + func Entropy192() [24]byte + func Entropy256() [32]byte + func FileExists(path string) bool + func Float64() float64 + func GenerateSeed(key string, nonce int32) (seed int32) + func GenerateSeed32Bytes(key string, nonce int32) (seed []byte) + func GenerateSeedAndNonce(key string) (seed, nonce int32) + func GenerateSeedAndNonce32Bytes(key string) (seed []byte, nonce int32) + func GetCiphers(data ecdata) (ciphers [][]int) + func GetDefaultMountPoint() string + func GetNonce(data ecdata) (nonce int32) + func InitMountPoint() + func Int16ToByteArray(num int16) []byte + func Int32ToByteArray(num int32) []byte + func Int64ToByteArray(num int64) []byte + func IntToByteArray(num int) []byte + func Intn(n int) int + func Join(chunksdir string, joinedfile string) + func Perm(n int) []int + func Read(b []byte) (int, error) + func ReadCipherData(filename string) (data ecdata) + func SetDefaultMountPoint(mountpoint string) + func Shuffle(n int, swap func(i, j int)) + func Split(fileToBeChunked string) (chunksdir string) + func Uint64n(n uint64) uint64 + func WriteByteArray(data []byte, filename string) + func WriteCipherData(nonce int32, ciphers *[][]int, filename string) + func WriteIndexArray(cipherindicies []int, filename string) + func WriteIndexArrays(ciphers [][]int, filename string) + func WriteNonce(nonce int32, filename string) + type AdditiveCongruential struct + func CreateAdditiveCongruential(seed int32) AdditiveCongruential + func (rng *AdditiveCongruential) Random(r int32) int32 + type Frand struct + Csprng *mrand.Rand + func CreateFrand(seed int64) Frand + type RNG struct + func New() *RNG + func NewCustom(seed []byte, bufsize int, rounds int) *RNG + func (r *RNG) BigIntn(n *big.Int) *big.Int + func (r *RNG) Bytes(n int) []byte + func (r *RNG) Entropy128() (entropy [16]byte) + func (r *RNG) Entropy192() (entropy [24]byte) + func (r *RNG) Entropy256() (entropy [32]byte) + func (r *RNG) Float64() float64 + func (r *RNG) Intn(n int) int + func (r *RNG) Perm(n int) []int + func (r *RNG) Read(b []byte) (int, error) + func (r *RNG) Shuffle(n int, swap func(i, j int)) + func (r *RNG) Uint64n(n uint64) uint64 + type Source struct + func NewSource() *Source + func (s *Source) Int63() int64 + func (s *Source) Seed(i int64) + func (s *Source) Uint64() uint64