duritong / trocla

A password store for password creation and retrieval
Other
75 stars 18 forks source link

pgsql Wrong hash when using trocla set #39

Closed Poil closed 6 years ago

Poil commented 8 years ago

Hi,

We have something strange,

$ trocla create burps_password plain
lWX}doX%Esh,hke?

$ trocla create burps_password pgsql "username: burps"
md5f0a287bfaf2d43af40c2d6595fb6312d

$ trocla delete burps_password pgsql
md5f0a287bfaf2d43af40c2d6595fb6312d

$ trocla set burps_password pgsql "username: burps"
Enter your password: xxxxxxxxxxxxxxxx  #  lWX}doX%Esh,hke?
Repeat password: xxxxxxxxxxxxxxxx  #  lWX}doX%Esh,hke?

$ trocla get burps_password pgsql
md59f0ece78fcfa41c0f316d97c45ae252a

trocla create pgsql seems to work fine but not trocla set pgsql I think we should have the same hash (md5 salt with username)

Best regards

duritong commented 6 years ago

Fixed with #48