1
ewconfig/scripts/genpass

10 lines
146 B
Bash
Executable File

#! /bin/bash
set -e
# Check args
if [ $# != 1 ]; then
echo "Usage: genpass <len>"
exit 1
fi
echo $(openssl rand -base64 $1 | tr -d "\n")