secure

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 2 Imported by: 1

README

Hyperscale secure Last release Documentation

Go Report Card

Branch Status Coverage
master Build Status Coveralls

The Hyperscale secure is a secure string generator.

Example

package main

import (
    "fmt"
    "github.com/hyperscale-stack/secure"
)

func main() {
    s, err := secure.GenerateRandomString(64)
    if err != nil {
        panic(err)
    }

    fmt.Println(s)
}

License

Hyperscale secure is licensed under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

GenerateRandomBytes returns securely generated random bytes.

func GenerateRandomString

func GenerateRandomString(length int) (string, error)

GenerateRandomString returns a securely generated random string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL