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

更新至 2.1.0rc1 #4

Merged
merged 58 commits into from
Jan 18, 2023
Merged

更新至 2.1.0rc1 #4

merged 58 commits into from
Jan 18, 2023

Conversation

nukemiko
Copy link
Owner

No description provided.

1. 改名:toint_nofloat() -> toint()、is_filepath() -> isfilepath()
2. tobytes()、tobytearray()、toint()、isfilepath() 的参数现在是纯位置参数
3. 修改了 tobytes()、tobytearray()、toint() 的文档
4. 优化了 tobytes()、tobytearray()、toint() 的判断逻辑
…rations_cipherdata(),交换了 keystream() 方法的两个参数的位置
…eprocess()

common.py:StreamCipherSkel -> KeyStreamBasedStreamCipherSkel
…ipherSkel:preprocess() 改名为 prexor();添加了 postxor()
…treamBasedStreamCipherProto` 删除了 `*xor` 方法
- `CipherSkel` 和 `KeyStreamBasedStreamCipherSkel` 的 `getkey` 方法现在是抽象方法
- 修改了 `CipherSkel` 和 `KeyStreamBasedStreamCipherSkel` 的文档
- 对于 `KeyStreamBasedStreamCipherSkel`,添加了可选的加密/解密的预/后处理方法;`EncryptedBytesIOSkel` 现在也会查找这些方法,并在找到时使用
- 为 `EncryptedBytesIOSkel` 添加了 `can_encrypt()` 和 `can_decrypt()` 方法,用于指示是否可以在参数 `nocryptlayer=True` 时读取或写入
…用于根据特定操作生成密钥流;为所有以 `prexor`/`postxor` 开头的可选方法添加了 `offset` 参数
@nukemiko nukemiko marked this pull request as ready for review January 18, 2023 02:43
@nukemiko nukemiko merged commit 2a221e6 into master Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant