Comments (4)
If you want to script it just set the password by generating the login fields in the config.
from qbittorrent-nox-static.
Some proof of concept ways of generating the password hash:
#!/bin/bash
# Check if a password is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <password>"
exit 1
fi
# Parameters
PLAIN_PASSWD="$1"
ITERATIONS=100000
SALT_SIZE=16
KEY_LEN=64 # Length of the hash output in bytes (512 bits for SHA-512)
# Generate a random salt
SALT=$(openssl rand -hex $SALT_SIZE)
# Use OpenSSL KDF command for PBKDF2 hashing
HASH=$(openssl kdf -keylen $KEY_LEN -kdfopt digest:SHA512 -kdfopt pass:"$PLAIN_PASSWD" \
-kdfopt salt:"$SALT" -kdfopt iter:$ITERATIONS PBKDF2 | tr -d '\n')
# Encode the salt and hash in Base64
SALT_BASE64=$(echo -n "$SALT" | xxd -r -p | base64 | tr -d '\n')
HASH_BASE64=$(echo -n "$HASH" | xxd -r -p | base64 | tr -d '\n')
# Output the formatted result
echo "@ByteArray(${SALT_BASE64}:${HASH_BASE64})"
Or with a light binary such as my placeholder repo here https://github.com/saltydk/qbt_pw_gen
from qbittorrent-nox-static.
thanks will check for this solution, may be source will be fixed in 4.6.2
from qbittorrent-nox-static.
If they patch it I can apply the patch and build a revision or they might drop a new version at the same time specifically for this fix.
Otherwise this is something that can be scripted around for deployment and is not something I would try to address here.
Backporting some patches is something I consider acceptable but I'm not deploying containers or anything here, just the binary.
@saltydk has provided a sensible approach to handling this deployment issue, thanks for that.
from qbittorrent-nox-static.
Related Issues (20)
- armv7: dso not found (engine routines) [asio.ssl:318767236] HOT 8
- qbittorrent 4.3.9 libtorrent 1.2.15 x86 HOT 2
- Invalid username or password for 4.6.1
- aarch64 (arm64) not identified correctly, build fails HOT 2
- ability to dynamically link libc HOT 10
- [Bug]: qBittorrent-nox not downloading on termux anymore?
- Termux (android) : Bad System call HOT 1
- One or more of the provided modules are not supported HOT 2
- sqlite3.c:(.text.unixDlOpen+0x9): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used HOT 2
- Termux build HOT 1
- After updating from 4.6.3 (2.0.9) to 4.6.3 (2.0.10) or 4.6.4 (2.0.10), all completed tasks disappeared. HOT 18
- qBittorrent-nox android progress
- Build failed with master branch - 'make_unexpected' is not a member of 'nonstd' HOT 6
- since termux officially support both qBittorrent & qBittorrent-nox, please provide static binary for android/termux
- asustor / synology nas devices not restoring session or settings after reload. HOT 2
- Can't view the speed graph in the web UI
- Error on qnap armv7 ts-231p3 HOT 36
- [BUG] file_truncate Not supported when file moves from incomplete dir to save path HOT 2
- Failure on Qt cmake build. Failed to find required Qt component "LinguistTools". HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qbittorrent-nox-static.