FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
8.03k stars 1.64k forks source link

SS-2022加密生成长度问题 #432

Open z991238 opened 1 year ago

z991238 commented 1 year ago

Welcome

Description of the problem,screencshot would be good

ss-rust 2022加密字符超过32位.路由器无法识别使用

/tmp/home/root# sslocal -b 127.0.0.1:23456 -s -m 2022-blake3-chacha20-poly1305 -k aeQXVPGLsnxFoJx4dJYEwlFKlNEfqAiRfpIKCHWG8shl --fast-open --no-delay -d thread 'main' panicked at '2022-blake3-chacha20-poly1305 is expecting a 32 bytes key, but password: aeQXVPGLsnxFoJx4dJYEwlFKlNEfqAiRfpIKCHWG8shl (33 bytes after decode)', /project/crates/shadowsocks/src/config.rs:352:21 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace Aborted

解析以后解码后有33字节,2022加密,要求32字节.希望可以修改一下字符生成长度.路由器只能识别32字节

Version of x-ui

$ x-ui version 0.4.3.0

Paste output here

x-ui log or xray log

paste log here

histion commented 1 year ago

加1,今天也发现了,用openssl rand -base64 32生成的能用,xui生成的不能用。。

Dragon-Lu commented 1 year ago

同样遇到这个问题,因为password长度的原因,x-ui生成的2022-blake3-aes-256-gcm 节点在v2rayN正常使用,但是导入到clash就会报错

foxMaxwell commented 1 year ago

的确是个比较头疼的问题,x-ui生成的密码同样无法在singbox核心中使用

werner-balonius commented 3 months ago

2024年了,h好像nekoray还是没解决这个问题