Skip to content

£ character seems to produce wrong hash #6

@biddster

Description

@biddster

If I hash asfd£ with salt $6$a7a5dc2fa314dda0 using this library I get:

$6$a7a5dc2fa314dda0$QWeHb0gFesNAVmsvX63.q5wbsV6./f7fmpF.DpqhTWzTQBO08koP65eqCOyTSMw4o8mnawc2hAtUf6f.P6VLb1

I can't login on a unix machine with the above hash. I try to gen the same thing using python and I get:

$ python -c 'import crypt; print crypt.crypt("asdf£", "$6$a7a5dc2fa314dda0")'
$6$a7a5dc2fa314dda0$E1GTcgT52oJFvhETaKwBk26Gy0GIzNQu2Mv4.UZwXp00CQi/8vC3IQKcrmpqbUaM2jFMOcDoShcxo1Mrt/Z5k/

If I take the £ out then the hashes are the same.

I've looked at the implementation and I can't see where the issue may lie.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions