Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def encrypt_file(filepath, factor):
|
|
82 |
checksum = calculate_checksum(data)
|
83 |
|
84 |
# Convert data to audio samples
|
85 |
-
samples = [
|
86 |
|
87 |
# Add checksum to the beginning of the samples
|
88 |
checksum_samples = [ord(byte) for byte in checksum.encode('ascii')]
|
|
|
82 |
checksum = calculate_checksum(data)
|
83 |
|
84 |
# Convert data to audio samples
|
85 |
+
samples = [int(byte * factor) for byte in data]
|
86 |
|
87 |
# Add checksum to the beginning of the samples
|
88 |
checksum_samples = [ord(byte) for byte in checksum.encode('ascii')]
|