fn deserialize(comptime HashResult: type, str: []const u8) Error!HashResult

Deserialize a PHC-formatted string into a structure HashResult.

Required field in the HashResult structure:

  • alg_id: algorithm identifier Optional, special fields:
  • alg_version: algorithm version (unsigned integer)
  • salt: salt
  • hash: output of the hash function

Other fields will also be deserialized from the function parameters section.

Parameters

HashResult: type,
str: []const u8,