Changeset 15 in code


Ignore:
Timestamp:
Nov 29, 2022, 10:58:24 PM (3 years ago)
Author:
koizumi.aoi
Message:

Worth a tag?

Signed-off-by: Aoi K <koizumi.aoi@…>

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.md

    r13 r15  
    1616
    1717### kanako_gen
    18 random username and password generator, requires `busybox(1)`
     18random username and password generator, requires `strings(1)`,
     19`dd(1)` and a sane `tr(1)` (FreeBSD's one behaves differently and
     20in unexpected ways)
    1921
    2022### kanako_menu
     
    3133## Related software
    3234* [akoizumi/ayu](https://git.shelltalk.net/akoizumi/ayu) [predecessor]
     35* [beastie/aps](https://codeberg.org/beastie/aps)
    3336* [biox/pa](https://github.com/biox/pa)
    3437* [e-zk/page](https://github.com/e-zk/page)
  • trunk/addons/kanako_gen

    r11 r15  
    22
    33fn_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")
    55}
    66fn_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")
    88}
    99
  • trunk/addons/kanako_menu

    r12 r15  
    1010fi
    1111
    12 find . -name '*.enc' | sort | sed 's,^\./,,;s,\.enc$,,' | ${menu_prog} | xargs $(which kanako) -c
     12find . -name '*.enc' | sort | sed 's,^\./,,;s,\.enc$,,' | "${kanako_menu_cmd}" | xargs $(which kanako) -c
  • trunk/kanako

    r14 r15  
    4646}
    4747fn_trash_directory() {
    48     rm -rf "$@"
     48    rm -rf "$1"
    4949}
    5050fn_trash_file() {
  • trunk/kanako.conf.example

    r14 r15  
    44#kanako_clip_cmd="wl-copy --primary"
    55#kanako_list_cmd="tree"
     6#kanako_menu_cmd="dmenu"
    67
    78## age
  • trunk/kanako.conf.mdoc

    r14 r15  
    1 .Dd Bureaucracy 73, 3188
     1.Dd Aftermath 41, 3188
    22.Dt KANAKO.CONF 5
    33.Os
     
    66.Nd configuration file for
    77.Xr kanako 1
    8 .Sh KEYS
    9 .Ss General section
     8.Sh FIELDS
    109.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
     11Clipboard executable to be
     12used with the -c switch
     13.It kanako_decrypt_args
     14Arguments for decryption
     15passed to kanako_encrypt_cmd
     16.It kanako_encrypt_args
     17Arguments for encryption
     18passed to kanako_encrypt_cmd
     19.It kanako_encrypt_cmd
     20Encryption executable to
     21be used with the program
     22.It kanako_list_cmd
     23Listing executable to
     24be used with the -l switch
     25.It kanako_menu_cmd
     26Menu executable to
     27be used with kanako_menu
    3428.El
    3529.Sh SEE ALSO
  • trunk/kanako.mdoc

    r14 r15  
    77.Sh SYNOPSIS
    88.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
    1511.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
    2816.Sh DESCRIPTION
    2917It is a clean rewrite of
Note: See TracChangeset for help on using the changeset viewer.