'Encrypt the password in selenium robot framework
I would like to encrypt my password, how is it possible in robot framework+selenium+python?
I am taking password from excel. any pointers will be helpful.
Solution 1:[1]
Try using Input.Password keyword where ever you are entering password Input.Password will not print the password into report.
Refer:https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Input%20Password
Solution 2:[2]
You can use b64encode to encode the password but you have to provide the real password once to encode it, once it is encrypted you can use it right away
Encrypt the password :
password= abc123
${encryptedPassword} b64encode ${password}
log to console ${encryptedPassword}
Use the Encrypted password
${password} = <Paste The encrypted password here>
${password1} b64decode ${password}
input text ${xpath} ${password1}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dharman |
| Solution 2 |
