Spaces:
Runtime error
Runtime error
Update stegan2.py
Browse files- stegan2.py +5 -1
stegan2.py
CHANGED
|
@@ -44,9 +44,13 @@ def decode(image_name,txt=None):
|
|
| 44 |
#if p == resultd:
|
| 45 |
this = decoded_data[:-5].split("#####",1)[0]
|
| 46 |
#enc_in = bytes(this,"utf-8")
|
| 47 |
-
this = this.strip('"')
|
| 48 |
#enc_in = base64.b64decode(this)
|
| 49 |
#enc_in = bytes(this,"utf-8")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
enc_in=this
|
| 51 |
print(f'enc_in:: {enc_in}')
|
| 52 |
with open("encrypted_data1.bin", "wb") as file:
|
|
|
|
| 44 |
#if p == resultd:
|
| 45 |
this = decoded_data[:-5].split("#####",1)[0]
|
| 46 |
#enc_in = bytes(this,"utf-8")
|
| 47 |
+
#this = this.strip('"')
|
| 48 |
#enc_in = base64.b64decode(this)
|
| 49 |
#enc_in = bytes(this,"utf-8")
|
| 50 |
+
print (this)
|
| 51 |
+
this = eval(this)
|
| 52 |
+
print (this)
|
| 53 |
+
|
| 54 |
enc_in=this
|
| 55 |
print(f'enc_in:: {enc_in}')
|
| 56 |
with open("encrypted_data1.bin", "wb") as file:
|