示例#1
0
def main():
    if sys.version_info[0] >= 3:
        input_method = input  # Using Python 3 (or higher)
    else:
        # Python 2 has the raw_input() method. Python 3 does not.
        input_method = raw_input  # noqa: ignore=F821
    try:
        while(1):
            code = input_method(
                '\nEnter obfuscated/encrypted string: (CTRL-C to exit):\n')
            print("\nHere is the unobfuscated string/password:"******"\nExiting...\n")
示例#2
0
def main():
    try:
        while (1):
            print("\nEnter password to obfuscate: (CTRL-C to exit)")
            password = getpass.getpass()
            print("Verify password:"******"*** ERROR: Passwords don't match! .. Please try again!")
                continue
            print("\nHere is the obfuscated password:"******"\nExiting...\n")
示例#3
0
def main():
    try:
        while(1):
            print("\nEnter password to obfuscate: (CTRL-C to exit)")
            password = getpass.getpass()
            print("Verify password:"******"*** ERROR: Passwords don't match! .. Please try again!")
                continue
            print("\nHere is the obfuscated password:"******"\nExiting...\n")
示例#4
0
def main():
    try:
        # Python 2 has the raw_input() method. Python 3 does not.
        input_method = raw_input  # noqa: ignore=F821
    except Exception:
        input_method = input  # Using Python 3
    try:
        while(1):
            code = input_method(
                '\nEnter obfuscated/encrypted string: (CTRL-C to exit):\n')
            print("\nHere is the unobfuscated string/password:"******"\nExiting...\n")
示例#5
0
def main():
    try:
        # Python 2 has the raw_input() method. Python 3 does not.
        input_method = raw_input  # noqa: ignore=F821
    except:
        input_method = input  # Using Python 3
    try:
        while (1):
            code = input_method(
                '\nEnter obfuscated/encrypted string: (CTRL-C to exit):\n')
            print("\nHere is the unobfuscated string/password:"******"\nExiting...\n")
示例#6
0
def main():
    try:
        while(1):
            print("\nEnter password to obfuscate: (CTRL-C to exit)")
            password = getpass.getpass()
            print("Verify password:"******"*** ERROR: Passwords don't match! .. Please try again!")
                continue
            print("\nHere is the obfuscated password:"******"\nInside a test, use the following to decrypt it:\n")
            time.sleep(0.2)
            print("    from seleniumbase import encryption")
            print("    encryption.decrypt('%s')" % encrypted_password)
            time.sleep(0.2)
    except KeyboardInterrupt:
        print("\nExiting...\n")