fix(password): update password handling for archives
commit2dad11d0ba20a96430822e72c04113e1b985d39f
authorttyS3 <ttys3.rust@gmail.com>
Fri, 6 Sep 2024 13:50:00 +0000 (6 13:50 +0000)
committerJoão Marcos <marcospb19@hotmail.com>
Sat, 7 Sep 2024 00:47:03 +0000 (6 21:47 -0300)
treefcd5468c9c55eb9680747df1cbb00d718747390b
parentd4e252a732c184d0cf9a8da997bacbcfa7b5a64e
fix(password): update password handling for archives

Refactor password handling in archive functions to use &[u8] instead of impl AsRef<[u8]>. Include better error reporting for invalid UTF-8 passwords in 7z archives.
src/archive/rar.rs
src/archive/sevenz.rs
src/archive/zip.rs
src/cli/args.rs
src/commands/decompress.rs
src/commands/list.rs
src/commands/mod.rs
src/error.rs