package
0.0.0-20240829150431-63fc2867930b
Repository: https://github.com/kisom/cryptutils.git
Documentation: pkg.go.dev
# Functions
Errorf is a convenience function for printing errors and warnings in the standard format used by this project.
Exists is a convenience function that returns a pair of booleans indicating whether a file exists or whether an error occurred checking the file.
NewNonce generates a new random nonce for use with NaCl.
PRNG returns the current PRNG being used by the package.
RandBytes is a wrapper for retrieving a buffer of the requested size, filled with random data.
ReadFile is a convenience function that transparently handles reading from a file or standard input as necessary.
ReadLine reads a line of input from the user.
SetPRNG is used to change the PRNG.
VersionString returns a formatted semver structure from Version.
WriteFile is a convenience function that transparently handles writing to a file or stdout as necessary.
Zero wipes out a byte slice.
# Constants
NonceSize contains the size, in bytes, of a NaCl nonce.
# Variables
A PassPrompt is a function that takes a string to display to the user, and returns a byte slice containing the user's input if no error occurred.
Version contains the current version of the cryptutils system.