Open thienphuoc86 opened 2 years ago
How to encode whole url ?hostname=xx&username=yy&password=str_base64_encoded?
Example:
1.) Webssh URL = http://localhost:8888
2.) Hostname of where you want to ssh = 192.168.10.2
3.) Username of the machine = user
4.) Password is = password
For you to have a URL you need to convert your password first into base64 to do that you can do it in bash to follow our example
$ echo "password" | base64
cGFzc3dvcmQK
Therefore your final URL will be:
Webssh URL/?hostname=Hostname of where you want to ssh&username=Username of the machine&password=Password in base 64
To plot in our example:
http://localhost:8888?hostname=192.168.10.2&username=user&password=cGFzc3dvcmQK
How to encode whole url ?hostname=xx&username=yy&password=str_base64_encoded?