Skip to content

Commit fd6b0ba

Browse files
committed
latest release
1 parent ea0e1ba commit fd6b0ba

5 files changed

Lines changed: 6 additions & 3 deletions

File tree

build/lib/piencrypt/data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pie_hash = '03c1d04aeffd72151933b2295df5b484547e00ead9d001126aef03e6179a9332'

build/lib/piencrypt/pie.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from data import pie_hash
2+
13
class PiEncrypt:
24

35
def __init__(self, loc):
@@ -13,13 +15,13 @@ def get_data(self):
1315
def hide_data(self, data):
1416
self.data = data
1517
with open(self.loc, 'ab') as f:
16-
f.write(bytes("HERE" + self.data , encoding="ascii"))
18+
f.write(bytes(pie_hash + self.data , encoding="ascii"))
1719

1820
# read the hidden data from the picture
1921
def read_data(self):
2022
with open(self.loc, 'rb') as f:
2123
content = f.read()
22-
list = content.split(b'HERE')
24+
list = content.split(bytes(pie_hash, encoding="ascii"))
2325
# print(f.read())
2426
return list[1].decode("utf-8")
2527

15.4 KB
Binary file not shown.

dist/piencrypt-0.7.0.2.tar.gz

14.4 KB
Binary file not shown.

web

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 056ca6934648be885d01775c6bc255ff049f10cd
1+
Subproject commit 2d38e5f2ae6dbc9eb6bd8bdb1ad2d7c9bcc63a35

0 commit comments

Comments
 (0)