Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
use codecs.open for utf-8 compatibility
  • Loading branch information
blankclemens authored Feb 28, 2020
commit a2062b51ba0c62bb5b8fbb76ea9da3c4d872849d
3 changes: 2 additions & 1 deletion VeraCracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import platform
import subprocess
import sys
import codecs
import time
from datetime import datetime

Expand Down Expand Up @@ -144,7 +145,7 @@ def printResults(startTime, tried):
checkRequirements()

# Get wordlist
wordlist = [x.strip() for x in open(args.p, 'r')] if args.p else [
wordlist = [x.strip() for x in codecs.open(args.p, 'r', 'utf-8')] if args.p else [
line.strip() for line in fileinput.input()]

# Time to test
Expand Down