1
ewconfig/scripts/genpass

10 lines
154 B
Bash
Executable File

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