-
Notifications
You must be signed in to change notification settings - Fork 30
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
更新至 2.1.0rc1 #4
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` 方法
…及添加了只读属性 cipher 和 master_key
- `CipherSkel` 和 `KeyStreamBasedStreamCipherSkel` 的 `getkey` 方法现在是抽象方法 - 修改了 `CipherSkel` 和 `KeyStreamBasedStreamCipherSkel` 的文档 - 对于 `KeyStreamBasedStreamCipherSkel`,添加了可选的加密/解密的预/后处理方法;`EncryptedBytesIOSkel` 现在也会查找这些方法,并在找到时使用 - 为 `EncryptedBytesIOSkel` 添加了 `can_encrypt()` 和 `can_decrypt()` 方法,用于指示是否可以在参数 `nocryptlayer=True` 时读取或写入
…e 时可能的问题;修复了 `NCM.save()` 的文档
…`to_ncm_163key()` 的文档,以及修改了参数名称
…用于根据特定操作生成密钥流;为所有以 `prexor`/`postxor` 开头的可选方法添加了 `offset` 参数
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.