def crypt_pass(cipher_suite, password): try: cipher_text = cipher_suite.encrypt(password) print cipher_text except InvalidToken as e: print_error("ERROR: InvalidToken") exit(99)