yunohost/data/apps/helpers.d/password
2015-09-28 16:54:48 +00:00

3 lines
133 B
Text

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')
}