Back to godoc.org

Package random

v1.53.1
Latest Go to latest

The latest major version is .

Published: Sep 13, 2020 | License: MIT | Module: github.com/rclone/rclone

Overview

Package random holds a few functions for working with random numbers

Index

func Password

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

func String(n int) string

String create a random string for test purposes.

Do not use these for passwords.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier