Documentation ¶
Index ¶
- Variables
- func CksAction(c *cli.Context) error
- func ClnAction(c *cli.Context) error
- func DelKeyAction(c *cli.Context) error
- func FileEncAction(c *cli.Context) error
- func FileLckAction(c *cli.Context) error
- func FileSplitAction(*cli.Context) error
- func GenPassAction(c *cli.Context) error
- func GetValueAction(c *cli.Context) error
- func HfsAction(c *cli.Context) error
- func KeySearchAction(c *cli.Context) error
- func LsbDecAction(c *cli.Context) error
- func LsbEncAction(c *cli.Context) error
- func ObfuscateAction(c *cli.Context) error
- func RSAKeyAction(*cli.Context) error
- func RSASignAction(*cli.Context) error
- func RSAVerifyAction(*cli.Context) error
- func SSHAction(c *cli.Context) error
- func SetValueAction(c *cli.Context) error
- func StorePassAction(c *cli.Context) error
- func WatchAction(c *cli.Context) error
- func WebCtrlAction(c *cli.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Cln = &cli.Command{ Name: "cln", Usage: "Find and clean duplicate files", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "delete", Aliases: []string{"d"}, Usage: "Delete duplicate files", }, }, ArgsUsage: "<path>", Action: ClnAction, }
View Source
var Dbm = &cli.Command{ Name: "dbm", Usage: "Securekit database management", Subcommands: []*cli.Command{ { Name: "set", Usage: "Set the value at the specified key", ArgsUsage: "<key> <value>", Action: SetValueAction, }, { Name: "get", Usage: "Get the value stored in specified key", ArgsUsage: "<key> <format>", Action: GetValueAction, }, { Name: "del", Usage: "Delete the existing key in database", ArgsUsage: "<key>", Action: DelKeyAction, }, { Name: "key", Usage: "Search keys with a matching pattern", ArgsUsage: "<keypattern>", Action: KeySearchAction, }, }, }
View Source
var Dsm = &cli.Command{ Name: "dsm", Usage: "Encryption and digital signature", Subcommands: []*cli.Command{ { Name: "cks", Usage: "Generate checksums for text and files", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "text", Aliases: []string{"t"}, Usage: "Generate hash (checksum) value for a string", }, &cli.BoolFlag{ Name: "file", Aliases: []string{"f"}, Usage: "Generate hash (checksum) value for a file", }, }, ArgsUsage: "<text>/<filepath>", Action: CksAction, }, { Name: "enc", Usage: "Protect files with selected encryption algorithm", ArgsUsage: "<path>", Action: FileEncAction, }, { Name: "lck", Usage: "Make files inaccessible by encrypting file headers", ArgsUsage: "<path>", Action: FileLckAction, }, { Name: "rnm", Usage: "Obfuscate file and folder names", ArgsUsage: "<path>", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "recursive", Aliases: []string{"r"}, Usage: "Recursively apply to subdirectories", }, }, Action: ObfuscateAction, }, { Name: "spt", Usage: "Split large files into smaller parts", Action: FileSplitAction, }, { Name: "sig", Usage: "Sign the data (file) and output the signed result", Action: RSASignAction, }, { Name: "vfy", Usage: "Verify the signature using an RSA public key", Action: RSAVerifyAction, }, { Name: "key", Usage: "Generate RSA keys", Action: RSAKeyAction, }, }, }
View Source
var Lsb = &cli.Command{ Name: "lsb", Usage: "LSB (Least Significant Bit) based steganography", Subcommands: []*cli.Command{ { Name: "enc", Usage: "Encode the data (file) inside an image", ArgsUsage: "<coverfile> <embedfile>", Action: LsbEncAction, }, { Name: "dec", Usage: "Decode the data (file) from an image", ArgsUsage: "<stegofile>", Action: LsbDecAction, }, }, }
View Source
var Pss = &cli.Command{ Name: "pss", Usage: "Simple and secure password management tool", Subcommands: []*cli.Command{ { Name: "gen", Usage: "Generate secure, random password", ArgsUsage: "<length>", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "uppercase", Aliases: []string{"u"}, Usage: "Include uppercase letters [A-Z]", }, &cli.BoolFlag{ Name: "lowercase", Aliases: []string{"l"}, Usage: "Include lowercase letters [a-z]", }, &cli.BoolFlag{ Name: "numbers", Aliases: []string{"n"}, Usage: "Include numbers [0-9]", }, &cli.BoolFlag{ Name: "symbols", Aliases: []string{"s"}, Usage: "Include symbols", }, }, Action: GenPassAction, }, { Name: "sto", Usage: "Store passwords securely", ArgsUsage: "<dbname>", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "init", Aliases: []string{"i"}, Usage: "Initialize new password storage", }, &cli.BoolFlag{ Name: "masterpass", Aliases: []string{"m"}, Usage: "Change a database's master password.", }, }, Action: StorePassAction, }, }, }
View Source
var Ssh = &cli.Command{ Name: "ssh", Usage: "Extensible command line SSH client", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "web", Aliases: []string{"w"}, Usage: "web terminal based on xterm.js", }, &cli.StringFlag{ Name: "config", Aliases: []string{"c"}, Usage: "config file path", }, }, Action: SSHAction, }
View Source
var Wat = &cli.Command{ Name: "wat", Usage: "File and folder watcher", Flags: []cli.Flag{ &cli.IntFlag{ Name: "mask", Aliases: []string{"m"}, Usage: "event's bitwise mask, see: https://godoc.org/gopkg.in/fsnotify.v1#Op", Value: 2, }, }, ArgsUsage: "<path> <command> <args>", Action: WatchAction, }
View Source
var Web = &cli.Command{ Name: "web", Usage: "Web application integration and launch", Subcommands: []*cli.Command{ { Name: "ctrl", Usage: "Control and monitor system from a Web UI", Flags: []cli.Flag{ &cli.StringFlag{ Name: "listen", Aliases: []string{"l"}, Value: ":8080", Usage: "address and port to listen (ip|port|:port|ip:port)", }, &cli.StringFlag{ Name: "config", Value: "config.json", Aliases: []string{"c"}, Usage: "config file path", }, &cli.BoolFlag{ Name: "enable-logging", Aliases: []string{"L"}, Usage: "enable log output", }, }, Action: WebCtrlAction, }, { Name: "hfs", Usage: "Portable HTTP file server", Flags: []cli.Flag{ &cli.StringFlag{ Name: "root", Aliases: []string{"r"}, Usage: "root directory of server", }, &cli.StringFlag{ Name: "listen", Aliases: []string{"l"}, Usage: "address and port to listen (ip|port|:port|ip:port)", }, &cli.StringFlag{ Name: "cert", Aliases: []string{"c"}, Usage: "TLS certificate path", }, &cli.StringFlag{ Name: "key", Aliases: []string{"k"}, Usage: "TLS certificate key path", }, &cli.StringFlag{ Name: "user", Usage: "user info: <username>:<password>", }, &cli.StringFlag{ Name: "user-sha256", Usage: "user info: <username>:<sha256-password>", }, &cli.BoolFlag{ Name: "global-auth", Usage: "require Basic Auth for all directories", }, &cli.BoolFlag{ Name: "global-upload", Usage: "allow upload files for all url paths", }, &cli.BoolFlag{ Name: "global-delete", Usage: "allow delete files for all url paths", }, &cli.BoolFlag{ Name: "global-mkdir", Usage: "allow mkdir files for all url paths", }, &cli.BoolFlag{ Name: "global-archive", Usage: "enable download archive for all directories", }, &cli.BoolFlag{ Name: "global-cors", Usage: "enable CORS headers for all directories", }, &cli.BoolFlag{ Name: "enable-logging", Usage: "enable log output", }, }, Action: HfsAction, }, }, }
Functions ¶
func DelKeyAction ¶
func DelKeyAction(c *cli.Context) error
func FileEncAction ¶
func FileEncAction(c *cli.Context) error
func FileLckAction ¶
func FileLckAction(c *cli.Context) error
func FileSplitAction ¶
func FileSplitAction(*cli.Context) error
func GenPassAction ¶
func GenPassAction(c *cli.Context) error
func GetValueAction ¶
func GetValueAction(c *cli.Context) error
func KeySearchAction ¶
func KeySearchAction(c *cli.Context) error
func LsbDecAction ¶
func LsbDecAction(c *cli.Context) error
func LsbEncAction ¶
func LsbEncAction(c *cli.Context) error
func ObfuscateAction ¶
func ObfuscateAction(c *cli.Context) error
func RSAKeyAction ¶
func RSAKeyAction(*cli.Context) error
func RSASignAction ¶
func RSASignAction(*cli.Context) error
func RSAVerifyAction ¶
func RSAVerifyAction(*cli.Context) error
func SetValueAction ¶
func SetValueAction(c *cli.Context) error
func StorePassAction ¶
func StorePassAction(c *cli.Context) error
func WatchAction ¶
func WatchAction(c *cli.Context) error
func WebCtrlAction ¶
func WebCtrlAction(c *cli.Context) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.