Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hukatama024e committed May 25, 2019
1 parent 7b5a16b commit 4057eaf
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,31 @@ Advanced Encryption Standard implimented in Rust

## Feature

* Support AES encryption and decryption(not support ECB and CBC mode yet).
* Support AES encryption and decryption.
* Support AES128, AES192, and AES256.

## Block cipher mode

* Support ECB and CBC mode.
* Add padding when text is multiple of the block size(32 characters).
* Support PKCS#7 padding.

## Usage

```
USAGE:
aes_rustlang.exe <TEXT> <KEYS>
OPTIONS:
-k, --key_length <KEY_LENGTH> Key length parameter [default: aes128] [possible values: aes128, aes192,
aes256]
-o, --operate_mode <OPERATE_MODE> Operation mode [default: encrypt] [possible values: encrypt, decrypt]
-h, --help Prints help information
-V, --version Prints version information
-i, --initilzation_vector <INITIALIZATION_VECTOR> Initilzation vector [default: ]
-k, --key_length <KEY_LENGTH>
Key length parameter [default: aes128] [possible values: aes128, aes192, aes256]
-o, --operate_mode <OPERATE_MODE>
Operation mode [default: encrypt] [possible values: encrypt, decrypt, ecb-encrypt, ecb-decrypt, cbc-
encrypt, cbc-decrypt]
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<TEXT> Plain text for encryption or encrypted text for decryption
Expand Down

0 comments on commit 4057eaf

Please sign in to comment.