Update 2023-02-22 08:31 OpenBSD/amd64
This commit is contained in:
19
.bin/pass-add
Executable file
19
.bin/pass-add
Executable file
@@ -0,0 +1,19 @@
|
||||
#/bin/sh
|
||||
|
||||
if [ -z "$2" ]; then
|
||||
echo "Usage: pass-add Folder/page.de username"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
_file="${1}"
|
||||
_login="${2}"
|
||||
_password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)"
|
||||
|
||||
{
|
||||
echo "$_password";
|
||||
echo "login: $_login";
|
||||
} | pass insert -m "${_file}"
|
||||
|
||||
echo "======="
|
||||
|
||||
pass "${_file}"
|
||||
Reference in New Issue
Block a user