x-ui icon indicating copy to clipboard operation
x-ui copied to clipboard

SS-2022加密生成长度问题

Open z991238 opened this issue 1 year ago • 4 comments

Welcome

  • [X] Yes, I'm using the latest major release. Only such installations are supported.
  • [X] Yes, I'm using the supported system. Only such systems are supported.
  • [X] Yes, I have read all WIKI document,nothing can help me in my problem.
  • [X] Yes, I've searched similar issues on GitHub and didn't find any.
  • [X] Yes, I've included all information below (version, config, log, etc).

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

z991238 avatar Jun 16 '23 13:06 z991238

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

histion avatar Jul 31 '23 14:07 histion

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

Dragon-Lu avatar Sep 30 '23 10:09 Dragon-Lu

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

foxMaxwell avatar Oct 19 '23 05:10 foxMaxwell

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

werner-balonius avatar Aug 13 '24 04:08 werner-balonius