SeleniumBase/seleniumbase/common/unobfuscate.py

32 lines
771 B
Python

"""
Unobfuscates an encrypted string/password into a plaintext string/password.
Usage:
python unobfuscate.py
Then enter the encrypted string/password.
The result is a plaintext string/password.
Works the same as obfuscate.py, but doesn't mask the input.
"""
from seleniumbase.common import encryption
import time
def main():
input_method = input
try:
while 1:
code = input_method(
"\nEnter obfuscated/encrypted string: (CTRL+C to exit):\n"
)
print("\nHere is the unobfuscated string/password:")
time.sleep(0.07)
print(encryption.decrypt(code))
time.sleep(0.21)
except KeyboardInterrupt:
print("\nExiting...\n")
if __name__ == "__main__":
main()