Skip to content

neko3cs/cryptstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cryptstr

Crypting string tool.

Download here 👉 CryptStr - nuget.org

How to use

Generate Key File

First, you have to generate config file.

$ cryptstr gen
$ cryptstr gen -a <algorithms>

Then, config file (named cryptstr.json) has generated.

Config file contents like that.👇

{"Key":"<Base64String>","IV":"<Base64String>"}

I recommend you might register to environment variable.

That would be easier to use this command.

Supported Algorithms

  • TripleDES (default)
  • DES
  • AES256

Encrypt String Value

$ cryptstr enc <plain_string_value> -k <key_of_config_file> -v <iv_of_config_file>
$ cryptstr enc <plain_string_value> -k <key_of_config_file> -v <iv_of_config_file> -a <algorithms>

Decrypt String Value

$ cryptstr dec <encrypted_string_value> -k <key_of_config_file> -v <iv_of_config_file>
$ cryptstr dec <encrypted_string_value> -k <key_of_config_file> -v <iv_of_config_file> -a <algorithms>

About

(En|De)crypting string tool.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages