rclone: github.com/ncw/rclone/lib/random Index | Files

package random

import "github.com/ncw/rclone/lib/random"

Package random holds a few functions for working with random numbers

Index

Package Files

random.go

func Password Uses

func Password(bits int) (password string, err error)

Password creates a crypto strong password which is just about memorable. The password is composed of printable ASCII characters from the base64 alphabet.

Requres password strength in bits. 64 is just about memorable 128 is secure

func String Uses

func String(n int) string

String create a random string for test purposes.

Do not use these for passwords.

Package random imports 3 packages (graph). Updated 2019-11-01. Refresh now. Tools for package owners.