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

package random

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

Package random holds a few functions for working with random numbers


Package Files


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) and is imported by 42 packages. Updated 2019-09-16. Refresh now. Tools for package owners.