Documentation ¶
Index ¶
- Constants
- func GenerateOctetKey(createdAt time.Time, rng *mathrand.Rand) jwk.Key
- func GenerateOctetKeyForSig(createdAt time.Time, rng *mathrand.Rand) jwk.Key
- func GenerateRSAKey(createdAt time.Time, rng *mathrand.Rand) jwk.Key
- func GenerateSecret(length int, rng *mathrand.Rand) string
- func ShannonEntropy(s string) (bits int)
Constants ¶
View Source
const Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"
Alphabet is an alphabet for secret. Secret is not intended to be manually entered by human.
Variables ¶
This section is empty.
Functions ¶
func GenerateOctetKeyForSig ¶
func ShannonEntropy ¶
ShannonEntropy is borrowed from https://github.com/Xe/x/blob/v1.2.3/entropy/shannon.go.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.