salt

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package salt provides utilities for generating salts.

Index

Constants

View Source
const RecommendedSize = 16

Variables

View Source
var Reader = rand.Reader

Functions

func New

func New(from io.Reader, size uint32) ([]byte, error)

Types

type ErrReader

type ErrReader struct{}

ErrReader can be used to mock errors while reading salt.

func (ErrReader) Read

func (ErrReader) Read([]byte) (int, error)

Jump to

Keyboard shortcuts

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