Hi All,
Could someone have the experience to encrypt the password to save into shadow file?
I want auto-generating VPN client's username/password. for example, I want to generate users account range "Test-001, Test-002 ... Test-010" then also generate 10 random passwords for each user. My question is if I make the username and password by script auto-generated, my script should encrypt all passwords and save into //etc//shadow files for OpenVPN service login use.
Does anyone know the way to encrypt passwords for OpenVPN format similar below string text:
Test-002:$1$9GVmKHUI$3hl7E3WvaK3E.5YJo60VR0:0:0:99999:7:0:0:
Test-001:$1$9GVmKHUI$41OhAmAYa9HKWgD0qTwBe1:0:0:99999:7:0:0:
Could someone have the experience to encrypt the password to save into shadow file?
I want auto-generating VPN client's username/password. for example, I want to generate users account range "Test-001, Test-002 ... Test-010" then also generate 10 random passwords for each user. My question is if I make the username and password by script auto-generated, my script should encrypt all passwords and save into //etc//shadow files for OpenVPN service login use.
Does anyone know the way to encrypt passwords for OpenVPN format similar below string text:
Test-002:$1$9GVmKHUI$3hl7E3WvaK3E.5YJo60VR0:0:0:99999:7:0:0:
Test-001:$1$9GVmKHUI$41OhAmAYa9HKWgD0qTwBe1:0:0:99999:7:0:0: