toEncoded method

String toEncoded(
  1. Uint8List hashBytes
)

Gets the PHC-compliant string for this Argon2HashDigest

Implementation

String toEncoded(Uint8List hashBytes) {
  return toCrypt(
    CryptDataBuilder(type.name)
        .version('${version.value}')
        .param('m', memorySizeKB)
        .param('t', passes)
        .param('p', lanes)
        .saltBytes(salt)
        .hashBytes(hashBytes)
        .build(),
  );
}