这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
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
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Upcoming (TBD)
Internal
--------
* Test on Python 3.14.
* Switch from pyaes to pycryptodomex as it seems to be more actively maintained.


1.39.1 (2025/10/06)
Expand Down
6 changes: 3 additions & 3 deletions mycli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import IO, BinaryIO, Literal, TextIO

from configobj import ConfigObj, ConfigObjError
import pyaes
from Cryptodome.Cipher import AES

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -175,7 +175,7 @@ def realkey(key: bytes) -> bytes:
return bytes(rkey)

def encode_line(plaintext: str, real_key: bytes, buf_len: int) -> bytes:
aes = pyaes.AESModeOfOperationECB(real_key)
aes = AES.new(real_key, AES.MODE_ECB)
text_len = len(plaintext)
pad_len = buf_len - text_len
pad_chr = bytes(chr(pad_len), "utf8")
Expand Down Expand Up @@ -250,7 +250,7 @@ def read_and_decrypt_mylogin_cnf(f: BinaryIO) -> BytesIO | None:

# Create a bytes buffer to hold the plaintext.
plaintext = BytesIO()
aes = pyaes.AESModeOfOperationECB(rkey_b)
aes = AES.new(rkey_b, AES.MODE_ECB)

while True:
# Read the length of the ciphertext.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"configobj >= 5.0.5",
"cli_helpers[styles] >= 2.7.0",
"pyperclip >= 1.8.1",
"pyaes >= 1.6.1",
"pycryptodomex",
"pyfzf >= 0.3.1",
"llm>=0.19.0",
"setuptools", # Required by llm commands to install models
Expand Down