# getPasswordHashAlgorithm method

String getPasswordHashAlgorithm()

Gets the the hash algorithm used to protect the password value. Possible values are: Sha256, Sha384, Sha512.

return The hash algorithm used to protect the password value. Possible values are: Sha256, Sha384, Sha512. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    String getPasswordHashAlgorithm() {
      Pointer<Char> pPasswordHashAlgorithm = nullptr;
      Pointer<Int> pPasswordHashAlgorithmSize = calloc.allocate(1);
      pPasswordHashAlgorithmSize[0] = -1;
      try {
        var err = biosealSDK.id3BiosealUserAuthentication_GetPasswordHashAlgorithm(_pHandle.value, pPasswordHashAlgorithm, pPasswordHashAlgorithmSize);
        if (err == BiosealError.insufficientBuffer.value) {
          pPasswordHashAlgorithm = calloc.allocate(pPasswordHashAlgorithmSize.value);
          err = biosealSDK.id3BiosealUserAuthentication_GetPasswordHashAlgorithm(_pHandle.value, pPasswordHashAlgorithm, pPasswordHashAlgorithmSize);
          if (err != BiosealError.success.value) {
            throw BiosealException(err);
          }
        }
        final vPasswordHashAlgorithm = utf8.decode(Uint8List.fromList(pPasswordHashAlgorithm.cast<Uint8>().asTypedList(pPasswordHashAlgorithmSize.value)));
        return vPasswordHashAlgorithm;
      } finally {
        calloc.free(pPasswordHashAlgorithm);
        calloc.free(pPasswordHashAlgorithmSize);
      }
    }