Skip to content

hash_password on SQL Server : truncated password hashes are passed to the database #117

@lovasoa

Description

@lovasoa

Discussed in #116

Originally posted by Pieter3033 October 26, 2023
Hi,

I am busy creating a add user page for an admin, not sure if I am doing something wrong.
I am currently struggling converting a input password to hash_password, using the built in sqlpage.hash_password function.

Password input:
image

Password conversion:
image

Database reference:
image

Note: The first row (admin) hash_password was generated by myself using argon2.
The rest of the rows was generated by the hash_password function.
It seems like the input password is not inserted into the function.

Input Tested:
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions