Commit ab3d205e authored by Helmuth Gronewold's avatar Helmuth Gronewold

Switch blocksize and count when reading from urandom with dd, to prevent...

Switch blocksize and count when reading from urandom with dd, to prevent getting fewer bytes for the secret key.
parent 43fe2fe2
...@@ -36,7 +36,7 @@ if [ ! -d /usr/local/lib/roundcubemail ]; then ...@@ -36,7 +36,7 @@ if [ ! -d /usr/local/lib/roundcubemail ]; then
fi fi
# Generate a safe 24-character secret key of safe characters. # Generate a safe 24-character secret key of safe characters.
SECRET_KEY=$(dd if=/dev/random bs=20 count=1 2>/dev/null | base64 | fold -w 24 | head -n 1) SECRET_KEY=$(dd if=/dev/random bs=1 count=18 2>/dev/null | base64 | fold -w 24 | head -n 1)
# Create a configuration file. # Create a configuration file.
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment