Skip to content

Commit ee6e47e

Browse files
committed
Switch crypto to skyhookfilecrypt
1 parent 96a4371 commit ee6e47e

File tree

5 files changed

+17
-179
lines changed

5 files changed

+17
-179
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ Simply running Skyhook with no arguments gives the user a list of available comm
2929
```
3030

3131
# Requirements
32-
The only requirement for running Skyhook is the ipfs-api module for Python 3, which can be installed by running:
32+
The only requirement for running Skyhook are the ipfs-api and skyhookfilecrypt modules for Python 3, which can be installed by running:
3333

3434
```
35-
pip3 install ipfs-api
35+
pip3 install ipfs-api skyhookfilecrypt
3636
```
3737

3838
or
3939

4040
```
41-
pip3 install --user ipfs-api
41+
pip3 install --user ipfs-api skyhookfilecrypt
4242
```
4343

4444
# Roadmap

crypto.py

Lines changed: 0 additions & 168 deletions
This file was deleted.

db.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,4 @@ def deleteItem(fileHash):
119119
connection.commit()
120120
return(0)
121121
except:
122-
return(2)
123-
124-
def cleanUp(filePath):
125-
os.remove(filePath)
122+
return(2)

skyhook

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,4 @@ if __name__ == "__main__":
117117
target = str(sys.argv[2])
118118

119119
main(command, target)
120+

updown.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
try:
22
import ipfsApi
33
except:
4-
print("Module ipfs-api not installed")
4+
print("[!] Module ipfs-api not installed")
55
exit()
66

7-
import random, string
7+
try:
8+
from skyhookfilecrypt import *
9+
except:
10+
print("[!] Module skyhookfilecrypt not installed")
11+
exit()
12+
13+
import random, string, os
814
from datetime import datetime
9-
from crypto import *
10-
from db import *
1115
from config import *
16+
from db import *
1217

1318
peer = ipfsApi.Client(host, port)
1419

20+
def cleanUp(filePath):
21+
os.remove(filePath)
22+
1523
def getRandomString():
1624
return("".join(random.choice(string.ascii_letters + string.digits) for i in range(32)))
1725

0 commit comments

Comments
 (0)