passwd.util

Undocumented in source.

Public Imports

passwd.securewipe
public import passwd.securewipe;

Members

Functions

cryptB64Decode
void cryptB64Decode(const(char)[] data, Out output)

Decode crypt(3) base 64 to an output range

cryptB64Encode
string cryptB64Encode(const(ubyte)[] data)

Encode data using crypt(3) base 64

cryptB64Encode
void cryptB64Encode(const(ubyte)[] data, Out output)

Encode data using crypt(3) base 64 to an output range

cryptSplit
const(CryptPieces) cryptSplit(const(char)[] crypt)

Parses crypt(3) output or salt in Modular Crypt Format (MCF)

fillSecureRandom
void fillSecureRandom(ubyte[] buf)

Fill buf with random bytes of cryptographic quality

permSwapDecomposition
size_t[] permSwapDecomposition(size_t[] perm)

Decompose a permutation into a series of swaps (0 i0) . (1 i1) . (2 i2) ...

stretchPut
void stretchPut(Out output, const(ubyte)[] data, size_t length)

Write length bytes of data to an output range, repeating data as necessary

Structs

CryptPieces
struct CryptPieces

Result of parsing MCF data

Meta