feat: add simple RabbitMQ support #241
Open
hank9999 wants to merge 11 commits into
Open
Conversation
1. use aes256 by default 2. construct complex string if key is empty 3. add salt and pbkdf2 to improve key security
Contributor
Author
|
2024.12.10 更新
|
This file contains hidden or 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
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.
不小心把 #216 的分支删了 重新开一个PR
基于 #239 #240
与源保持高度用法兼容性,不影响以前正在跑的所有代码
只需另加一个生产者,消费者添加rabbitmq参数 即可正常运行
可启动多个消费端处理数据
pip install -U git+https://github.com/hank9999/khl.py@rabbitmq快速安装体验(kook -> khl.py 生产者 (解析数据) -> RabbitMQ -> khl.py 消费者 (处理数据)
传递过程中 从生产者->消费者端数据为避免明文传输,进行AES加密
AES 密钥采用 PBKDF2 迭代 10万次生成结果,增强安全性