Changeset 15 in code
- Timestamp:
- Nov 29, 2022, 10:58:24 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README.md
r13 r15 16 16 17 17 ### kanako_gen 18 random username and password generator, requires `busybox(1)` 18 random username and password generator, requires `strings(1)`, 19 `dd(1)` and a sane `tr(1)` (FreeBSD's one behaves differently and 20 in unexpected ways) 19 21 20 22 ### kanako_menu … … 31 33 ## Related software 32 34 * [akoizumi/ayu](https://git.shelltalk.net/akoizumi/ayu) [predecessor] 35 * [beastie/aps](https://codeberg.org/beastie/aps) 33 36 * [biox/pa](https://github.com/biox/pa) 34 37 * [e-zk/page](https://github.com/e-zk/page) -
trunk/addons/kanako_gen
r11 r15 2 2 3 3 fn_genpass() { 4 printf "Password: %s\n" $( busybox tr -dc '[A-Z][a-z][0-9]' </dev/urandom | dd bs=1 count=${1:-80} 2>/dev/null; echo)4 printf "Password: %s\n" $(strings </dev/urandom | dd bs=1 count=${1:-80} 2>/dev/null | tr -d " \t\n\r") 5 5 } 6 6 fn_genuser() { 7 printf "Username: %s\n" $( busybox tr -dc '[A-Z][a-z][0-9]' </dev/urandom | dd bs=1 count=10 2>/dev/null; echo)7 printf "Username: %s\n" $(strings </dev/urandom | dd bs=1 count=10 2>/dev/null | tr -d " \t\n\r") 8 8 } 9 9 -
trunk/addons/kanako_menu
r12 r15 10 10 fi 11 11 12 find . -name '*.enc' | sort | sed 's,^\./,,;s,\.enc$,,' | ${menu_prog}| xargs $(which kanako) -c12 find . -name '*.enc' | sort | sed 's,^\./,,;s,\.enc$,,' | "${kanako_menu_cmd}" | xargs $(which kanako) -c -
trunk/kanako
r14 r15 46 46 } 47 47 fn_trash_directory() { 48 rm -rf "$ @"48 rm -rf "$1" 49 49 } 50 50 fn_trash_file() { -
trunk/kanako.conf.example
r14 r15 4 4 #kanako_clip_cmd="wl-copy --primary" 5 5 #kanako_list_cmd="tree" 6 #kanako_menu_cmd="dmenu" 6 7 7 8 ## age -
trunk/kanako.conf.mdoc
r14 r15 1 .Dd Bureaucracy 73, 31881 .Dd Aftermath 41, 3188 2 2 .Dt KANAKO.CONF 5 3 3 .Os … … 6 6 .Nd configuration file for 7 7 .Xr kanako 1 8 .Sh KEYS 9 .Ss General section 8 .Sh FIELDS 10 9 .Bl -tag -width 11n -compact 11 .It clip_cmd 12 Clipboard manager command 13 .It debug 14 Controls whether to use debug 15 mode or not. Any value other 16 than false is interpreted as 17 true. 18 .It list_cmd 19 Command used to print a listing 20 of the password store 21 .It menu_cmd 22 Menu command for kanako_menu 23 .El 24 .Ss Encryption section 25 .Bl -tag -width 11n -compact 26 .It encrypt_cmd 27 Command to handle encryption 28 .It encrypt_args 29 Options to be passed to 30 encrypt_cmd for encryption 31 .It decrypt_args 32 Options to be passed to 33 encrypt_cmd for decryption 10 .It kanako_clip_cmd 11 Clipboard executable to be 12 used with the -c switch 13 .It kanako_decrypt_args 14 Arguments for decryption 15 passed to kanako_encrypt_cmd 16 .It kanako_encrypt_args 17 Arguments for encryption 18 passed to kanako_encrypt_cmd 19 .It kanako_encrypt_cmd 20 Encryption executable to 21 be used with the program 22 .It kanako_list_cmd 23 Listing executable to 24 be used with the -l switch 25 .It kanako_menu_cmd 26 Menu executable to 27 be used with kanako_menu 34 28 .El 35 29 .Sh SEE ALSO -
trunk/kanako.mdoc
r14 r15 7 7 .Sh SYNOPSIS 8 8 .Nm 9 .Fl c 10 .Ar args 11 .Nm 12 .Fl e 13 .Ar args 14 .Nm 9 .Fl c Ar args 10 .Fl e Ar args 15 11 .Fl l 16 .Nm 17 .Fl n 18 .Ar args 19 .Nm 20 .Fl r 21 .Ar args 22 .Nm 23 .Fl R 24 .Ar args 25 .Nm 26 .Fl v 27 .Ar args 12 .Fl n Ar args 13 .Fl r Ar args 14 .Fl R Ar args 15 .Fl v Ar args 28 16 .Sh DESCRIPTION 29 17 It is a clean rewrite of
Note:
See TracChangeset
for help on using the changeset viewer.