Myster-Tee / TinfoilWebServer

Install your packages from your own server
GNU General Public License v3.0
123 stars 26 forks source link

PlainText Works - Sha256 Password Incorrect #35

Closed r3nfolly closed 2 months ago

r3nfolly commented 2 months ago

Hello again.

If I set up the authentication as Sha256, I get " password incorrect" . And I'm using something simple to test. On plaintext works fine.

    "Name": "renato",
    "Pwd": "123",
    "MaxFingerprints": 3,
    "CustomIndexPath": null

Am I doing something wrong?

jecoteco commented 2 months ago

Password must be in SHA256 encrypted format not "123". In this case the encrypted password would be "a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3". Type "123" as password in tinfoil with this and it will accept. There are a number of web sites and programs that can convert for you. Keep in mind that a SHA256 password can not be decrypted so don't forget your password.

r3nfolly commented 2 months ago

Thank you so much, now works.

Myster-Tee commented 2 months ago

Password must be in SHA256 encrypted format not "123". In this case the encrypted password would be "a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3". Type "123" as password in tinfoil with this and it will accept. There are a number of web sites and programs that can convert for you. Keep in mind that a SHA256 password can not be decrypted so don't forget your password.

Thanks for doing support @jecoteco ;)