mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
7 lines
187 B
Text
7 lines
187 B
Text
|
|
# Generate a random password
|
|
#
|
|
# usage: ynh_password
|
|
ynh_password() {
|
|
echo $(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')
|
|
}
|