Skip to content

Commit

Permalink
Add requirements.txt; fix pycryptodome import
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav1 committed Oct 18, 2023
1 parent 36235f0 commit 4a070f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__
/.venv

3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libusb1
pycryptodome

7 changes: 3 additions & 4 deletions unisoc-unlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import sys
from bundled_adb import fastboot, usb_exceptions
from Cryptodome.Signature import PKCS1_v1_5
from Cryptodome.Hash import SHA256
from Cryptodome.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
import base64
import io

Expand Down Expand Up @@ -66,4 +66,3 @@ def main():

if __name__ == '__main__':
main()

0 comments on commit 4a070f6

Please sign in to comment.