-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to encrypt passwords? #109
Comments
If you want to avoid storing passwords in the test repo in clear text, you can:
Of course, everybody else in your team will have to set the |
Please explain below codeopentest encrypt --password my_secret_password the_text_to_encrypt my_secret_password - ? the_text_to_encrypt - ?Do i need to enter my own password here encryptionPassword: my_secret_password For now this code is not working for me
|
So let's say you have a log in test, and the password used for authentication is
If you run this command, you'll get |
Step 1 : STEP 2 : Adding this code in login file
Step 3 : Adding code in Actor file
But, it is not working |
Did you put the encryptionPassword in your
Could you log the encryption password, encrypted data and unencrypted data, to verify what it looks like?
|
Hi Adrian, I am able to encrypt and decrypt the password. Please let me know how we can avoid decrypted password to be logged in logs available in running actor and server Thanks, |
@ariesranjan There is currently no way to prevent passwords and other secrets to appear in log files. Your question made me think of a possible implementation for this, though. OpenTest could take note of all values returned from the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi @adrianth , |
@ewmartinez Yes, this is implemented. Please see the $maskSecret function. |
Is it possible to encrypt passwords?
The text was updated successfully, but these errors were encountered: