cmd

package
v0.0.0-...-3ec35c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Aes = cli.Command{
	Name:  "aes",
	Usage: "AES-256 Encrypt and Decrypt",
	Subcommands: []cli.Command{
		{
			Name:                   "encrypt",
			Aliases:                []string{"e"},
			Usage:                  "encrypt data using AES-256",
			UseShortOptionHandling: true,
			Flags: []cli.Flag{
				&cli.BoolFlag{
					Name:  "text,t",
					Usage: "encrypt and decrypt hex strings using AES-256",
				},
				&cli.BoolFlag{
					Name:  "rename,r",
					Usage: "encrypt and decrypt file names",
				},
				&cli.BoolFlag{
					Name:  "delete,d",
					Usage: "delete origin files",
				},
			},
			Action: aesEncryptAction,
		},
		{
			Name:                   "decrypt",
			Aliases:                []string{"d"},
			Usage:                  "decrypt data using AES-256",
			UseShortOptionHandling: true,
			Flags: []cli.Flag{
				&cli.BoolFlag{
					Name:  "text,t",
					Usage: "encrypt and decrypt hex strings using AES-256",
				},
				&cli.BoolFlag{
					Name:  "rename,r",
					Usage: "encrypt and decrypt file names",
				},
				&cli.BoolFlag{
					Name:  "delete,d",
					Usage: "delete origin files",
				},
			},
			Action: aesDecryptAction,
		},
	},
}
View Source
var Base64 = cli.Command{
	Name:  "base64",
	Usage: "Base64 Encode and Decode",
	Subcommands: []cli.Command{
		{
			Name:    "encode",
			Aliases: []string{"e"},
			Usage:   "encode the source data to a Base64 string",
			Action:  encodeAction,
		},
		{
			Name:    "decode",
			Aliases: []string{"d"},
			Usage:   "decode the data from a Base64 string",
			Action:  decodeAction,
		},
	},
}
View Source
var Md5 = cli.Command{
	Name:  "md5",
	Usage: "MD5 Hash Generator",
	Subcommands: []cli.Command{
		{
			Name:    "encrypt",
			Aliases: []string{"e"},
			Usage:   "generate the MD5 hash of any string",
			Action:  md5Action,
		},
	},
}
View Source
var Rsa = cli.Command{
	Name:  "rsa",
	Usage: "RSA Encrypt and Decrypt",
	Subcommands: []cli.Command{
		{
			Name:    "encrypt",
			Aliases: []string{"e"},
			Usage:   "encrypt data using RSA",
			Flags: []cli.Flag{
				&cli.BoolFlag{
					Name:  "text,t",
					Usage: "encrypt and decrypt hex strings using RSA",
				},
			},
			Action: rsaEncryptAction,
		},
		{
			Name:    "decrypt",
			Aliases: []string{"d"},
			Usage:   "decrypt data using RSA",
			Flags: []cli.Flag{
				&cli.BoolFlag{
					Name:  "text,t",
					Usage: "encrypt and decrypt hex strings using RSA",
				},
			},
			Action: rsaDecryptAction,
		},
	},
}
View Source
var Sha = cli.Command{
	Name:  "sha",
	Usage: "SHA Hash Generator",
	Subcommands: []cli.Command{
		{
			Name:    "encrypt",
			Aliases: []string{"e"},
			Usage:   "generate the SHA hash of any string",
			Action:  shaAction,
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL