dotfiles/.local/bin/scripts/vmpasswd
2023-11-04 19:09:52 +01:00

5 lines
200 B
Bash
Executable file

#!/bin/sh -ex
# Generate a cloud-init hashed password for the given machine and copy it
passwd=$(mkpasswd --method=SHA-512 --rounds=4096 $(pass mpw -t basic "$@"))
echo $passwd
echo $passwd | wl-copy