cryptSplit

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

@safe pure
cryptSplit
(
const(char)[] crypt
)

Examples

const result = cryptSplit("$5$rounds=10000$saltstringsaltst$3xv.VbSHBb41AL9AvLeujZkZRBAwqFMz2.opqey6IcA");
assert (result.algo_id == "5");
assert (result.params == "rounds=10000");
assert (result.salt_txt == "saltstringsaltst");
assert (result.digest_txt == "3xv.VbSHBb41AL9AvLeujZkZRBAwqFMz2.opqey6IcA");

Meta