Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Python 3.12. #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ name = "pypi"
[dev-packages]

[packages]
rncryptor = "==3.2.0"
bpylist = "==0.1.4"
click = "==6.7"
pyqrcode = "==1.2.1"
pycryptodome = "==3.9.1"
rncryptor = "*"
bpylist2 = "*"
click = "*"
pyqrcode = "*"
pycryptodome = "*"

[requires]
python_version = "3.7"
python_version = "3.12"
92 changes: 48 additions & 44 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions decrypt_otpauth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import base64
import plistlib
import click
import getpass
import hashlib
Expand All @@ -8,8 +9,7 @@

import pyqrcode

from bpylist import archiver
from bpylist.archive_types import uid
from bpylist2 import archiver

from Crypto.Cipher import AES

Expand Down Expand Up @@ -179,7 +179,7 @@ def decode_object(self, index):
return raw_obj

class_uid = raw_obj.get('$class')
if not isinstance(class_uid, uid):
if not isinstance(class_uid, plistlib.UID):
raise archiver.MissingClassUID(raw_obj)

klass = self.class_for_uid(class_uid)
Expand Down