Page 1 of 1

HashedPassword hash function is base64(sha0(password))

Posted: Sun Oct 11, 2020 3:07 pm
by yahuu
Hi,

I needed to update the server administrator password by editing the "HashedPassword" value in vpn_server.config file.
I finally have found the hash function softether uses which is base64(sha0(password))
Just wanted to share this to save other people's time.
Thank you

PS: if anyone needs java implementation please reply to this thread

Re: HashedPassword hash function is base64(sha0(password))

Posted: Wed Jan 27, 2021 7:44 am
by jpl
can you upload the code to github?
thanks

Re: HashedPassword hash function is base64(sha0(password))

Posted: Thu Feb 04, 2021 12:19 pm
by kotten
yahuu wrote:
Sun Oct 11, 2020 3:07 pm
Hi,

I needed to update the server administrator password by editing the "HashedPassword" value in vpn_server.config file.
I finally have found the hash function softether uses which is base64(sha0(password))
Just wanted to share this to save other people's time.
Thank you

PS: if anyone needs java implementation please reply to this thread

Shoot. I have tried to understand how I would be able to create that using a very simple bashscript (such as

Code: Select all

 echo "passwd" | shasum | base64 
) or such but I can't seem to grasp it. Shoot and post your java implementation to get from "cleartext" to hashed. They seem to always be 29 characters.

Re: HashedPassword hash function is base64(sha0(password))

Posted: Thu Feb 04, 2021 6:22 pm
by yahuu

Re: HashedPassword hash function is base64(sha0(password))

Posted: Tue Jul 27, 2021 1:42 pm
by yahuu
Server configuration file uses hash(serverpassword)
Vpn Client configuration file uses hash("userpassword"+uppercase("username"))

reference
https://github.com/SecretNest/SoftEther ... ram.cs#L17