Versions in this module Expand all Collapse all v2 v2.0.5 Apr 13, 2021 Changes in this version + const MaskDigits + const MaskLetterDigits + const MaskLetterSymbolDigits + const MaskLetterSymbols + const MaskLetters + const MaskSymbols + func GenerateKey(size KeySize) ([]byte, error) + func GenerateRecommendedKey() ([]byte, error) + func RandomBytes(n int) ([]byte, error) + func RandomDigits(n int) (string, error) + func RandomString(n int) (string, error) + func RandomStringURLSafe(n int) (string, error) + func RandomStringWithMask(mask string, n int) (string, error) + type KeySize int + const KeySize16 + const KeySize24 + const KeySize32