HashedPassword hash function is base64(sha0(password))

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
yahuu
Posts: 3
Joined: Mon Sep 24, 2018 12:10 pm

HashedPassword hash function is base64(sha0(password))

Post by yahuu » 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

jpl
Posts: 7
Joined: Mon Jan 25, 2021 11:08 am

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

Post by jpl » Wed Jan 27, 2021 7:44 am

can you upload the code to github?
thanks

kotten
Posts: 10
Joined: Tue Feb 02, 2021 7:29 am

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

Post by kotten » Thu Feb 04, 2021 12:19 pm

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.


yahuu
Posts: 3
Joined: Mon Sep 24, 2018 12:10 pm

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

Post by yahuu » Tue Jul 27, 2021 1:42 pm

Server configuration file uses hash(serverpassword)
Vpn Client configuration file uses hash("userpassword"+uppercase("username"))

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

Post Reply