|
@@ -17,7 +17,7 @@ def count(line):
|
|
|
else:
|
|
|
charCount[c] = 1
|
|
|
|
|
|
-with open("Data/Tunngle_Setup_v5.8.4.exe", 'rb') as f :
|
|
|
+with open("Data/hello.txt", 'rb') as f :
|
|
|
|
|
|
print("Reading file")
|
|
|
for l in f:
|
|
@@ -37,4 +37,4 @@ with open("Data/Tunngle_Setup_v5.8.4.exe", 'rb') as f :
|
|
|
for key in charCount:
|
|
|
f = charCount[key] / numberOfBits
|
|
|
entropy -= f * log(f, 2)
|
|
|
- print(entropy)
|
|
|
+ print(entropy)
|