-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5ad909
commit a64a7fb
Showing
4 changed files
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# PhpAes | ||
|
||
[![Build Status](https://travis-ci.org/phillipsdata/phpaes.svg?branch=master)](https://travis-ci.org/phillipsdata/phpaes) | ||
|
||
FIPS-192 compliant AES cipher. | ||
|
||
### Supported key lengths: | ||
- 128 bits | ||
- 192 bits | ||
- 256 bits | ||
|
||
### Support block modes: | ||
|
||
- ECB: Electronic Code Book | ||
- CBC: Cipher Block Chaining | ||
- CFB: Cipher Feedback | ||
- OFB: Output Feedback | ||
|
||
### Supported padding schemes: | ||
|
||
- null byte (0x00) | ||
|
||
|
||
## Installation | ||
|
||
Install via composer: | ||
|
||
```sh | ||
composer require phpaes/phpaes | ||
``` | ||
|
||
## Basic Usage | ||
|
||
```php | ||
use PhpAes\Aes; | ||
|
||
$aes = new Aes('abcdefgh01234567', 'CBC', '1234567890abcdef'); | ||
|
||
$y = $aes->encrypt('hello world!'); | ||
$x = $aes->decrypt($y); | ||
|
||
echo base64_encode($y); | ||
echo $x; | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters