Add module for generating and checking password hashes
Add module for generating and checking password hashes

Add a module that uses the scrypt algorithm for generating
password hashes. A generated hash takes the format

  ALGORITHM,PARAMETERS

where for the 'scrypt' algorithm, PARAMETERS takes the
format

  COST-FACTOR,BLOCK-SIZE,PARALLELIZATION,SALT-BASE64,DERIVED-PASSWORD-BASE64

For example a complete hash would be

  scrypt,4000,8,1,wWIFLDnGRC4sM6QX95ha8Bj99LiZTX/URO3zKmlGbPY=,nzszNs1TMsrBrrvJ7BRoiezxpVcE7OxIldOBdfVXsew=

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

dicot-project/dicot-api