Changeset 11 in code
- Timestamp:
- Oct 18, 2022, 9:57:56 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README.md
r10 r11 1 1 # kanako (神奈子) 2 the adaptable password manager. 2 the adaptable password manager. named after [Kanako Yasaka](https://en.touhouwiki.net/wiki/Kanako_Yasaka) 3 3 4 4 ## Backends supported … … 10 10 * Any of the above, depending how you configured it 11 11 * `ls(1)` or `tree(1)` for printing a list 12 * busybox `tr(1)` for password generation13 12 * `mandoc(1)` for documentation 14 13 15 14 ## Add-ons 16 15 17 ### kanakomenu 16 ### kanako_gen 17 random username and password generator, requires `busybox(1)` 18 19 ### kanako_menu 18 20 quick graphical front-end for kanako, works with either of `dmenu(1)` 19 or `bemenu(1)`, useful for copying passwords to clipboard. it's configured 20 through kanakomenu.conf 21 or `bemenu(1)`, useful for copying passwords to clipboard. 21 22 22 ### kanako totp23 ### kanako_totp 23 24 time-based one time password addon for kanako, requires `oathtool(1)` 24 25 from oath-toolkit. -
trunk/kanako
r10 r11 6 6 7 7 if test -d "${store_dir}"; then 8 8 cd "${store_dir}" 9 9 else 10 11 echo "Please run kanako-init"12 10 echo "Password store not found!" 11 echo "Create it with `mkdir -p $store_dir`" 12 exit 1 13 13 fi 14 14 15 15 if test -f "${conf_dir}/kanako.conf"; then 16 16 . "${conf_dir}/kanako.conf"; 17 17 else 18 19 20 21 18 echo "Configuration file has not been found!" 19 echo "Copy kanako.conf from the examples directory," 20 echo "and edit accordingly." 21 exit 1 22 22 fi 23 23 … … 30 30 ${encrypt_cmd} ${encrypt_args} ${1%%.enc} > ${1%%.enc}.enc 31 31 rm "${1%%.enc}" 32 }33 fn_generate() {34 busybox tr -dc '[A-Z][a-z][0-9]' </dev/urandom | dd bs=1 count=${1:-80} 2>/dev/null; echo35 32 } 36 33 fn_list() { … … 56 53 cat <<EOF 57 54 Usage: 58 kanako [-ceglnrRv] <arguments> 59 kanako [copy|edit|gen|list|add|trash|trashd|view] <arguments> 55 kanako [-celnrRv] <arguments> 60 56 EOF 61 57 } … … 71 67 72 68 case $1 in 73 -c | copy) fn_copy $2 ;; 74 -e | edit) fn_edit $2 ;; 75 -g | gen) fn_generate $2 ;; 76 -l | list) fn_list ;; 77 -n | add) fn_new $2 ;; 78 -r | trash) fn_trash_entry $2 ;; 79 -R | trashd) fn_trash_directory $2 ;; 80 -v | view) fn_view $2 ;; 69 -c) fn_copy $2 ;; 70 -e) fn_edit $2 ;; 71 -l) fn_list ;; 72 -n) fn_new $2 ;; 73 -r) fn_trash_entry $2 ;; 74 -R) fn_trash_directory $2 ;; 75 -v) fn_view $2 ;; 81 76 *) fn_usage ;; 82 77 esac -
trunk/kanako.mdoc
r3 r11 1 .Dd Bureaucracy 65, 31881 .Dd Bureaucracy 72, 3188 2 2 .Dt KANAKO 1 3 3 .Os … … 9 9 .Sh USAGE 10 10 .Bl -tag -width 11n -compact 11 .It add,-n11 .It -n 12 12 Add a new entry 13 .It copy,-c13 .It -c 14 14 Copy an entry's text to the clipboard 15 .It edit,-e15 .It -e 16 16 Edit an entry 17 .It gen, -g 18 Generate a random password 19 .It list, -l 17 .It -l 20 18 List all entries 21 .It trash,-r19 .It -r 22 20 Remove single entries 23 .It trashd,-R21 .It -R 24 22 Remove recursively a directory w/ entries 25 .It view,-v23 .It -v 26 24 View an entry 27 25 .Bl -
trunk/mkfile
r9 r11 6 6 install-bin: 7 7 install -m$EXEC_MODE kanako $PREFIX/bin/kanako 8 install -m$EXEC_MODE kanako-init $PREFIX/bin/kanako-init9 install -m$EXEC_MODE kanakomenu $PREFIX/bin/kanakomenu10 install -m$EXEC_MODE kanakototp $PREFIX/bin/kanakototp11 8 install-examples: 12 9 install -m$FILE_MODE kanako.conf.example $PREFIX/share/examples/kanako/kanako.conf 13 install -m$FILE_MODE kanakomenu.conf.example $PREFIX/share/examples/kanako/kanakomenu.conf14 10 install-man: 15 11 install -m$FILE_MODE kanako.mdoc $PREFIX/share/man/man1/kanako.1 16 12 install -m$FILE_MODE kanako.conf.mdoc $PREFIX/share/man/man5/kanako.conf.5 17 13 uninstall-bin: 18 rm -f $PREFIX/bin/kanako $PREFIX/bin/kanako-init $PREFIX/bin/kanakomenu $PREFIX/bin/kanakototp14 rm -f $PREFIX/bin/kanako 19 15 uninstall-examples: 20 16 rm -f $PREFIX/share/examples/kanako/kanako.conf $PREFIX/share/exmaples/kanako/kanakomenu.conf
Note:
See TracChangeset
for help on using the changeset viewer.