-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
21 changed files
with
295 additions
and
289 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
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 |
---|---|---|
@@ -1,27 +1,33 @@ | ||
{ | ||
"name": "mmeyer2k/dcrypt", | ||
"description": "A petite library of encryption functionality for PHP", | ||
"keywords": ["encryption", "hashing", "pbkdf", "aes", "openssl"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Michael Meyer", | ||
"email": "m.meyer2k@gmail.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Dcrypt\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"classmap": [ | ||
"examples/", | ||
"tests/" | ||
] | ||
}, | ||
"minimum-stability": "dev" | ||
"name": "mmeyer2k/dcrypt", | ||
"description": "A petite library of encryption functionality for PHP", | ||
"keywords": [ | ||
"encryption", | ||
"aes", | ||
"gcm", | ||
"openssl" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Michael Meyer", | ||
"email": "m.meyer2k@gmail.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.1.0", | ||
"ext-openssl": "*", | ||
"ext-mbstring": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Dcrypt\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"classmap": [ | ||
"tests/" | ||
] | ||
}, | ||
"minimum-stability": "dev" | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* InvalidKeyException.php. | ||
* | ||
* PHP version 7 | ||
* | ||
* @category Dcrypt | ||
* | ||
* @author Michael Meyer (mmeyer2k) <m.meyer2k@gmail.com> | ||
* @license http://opensource.org/licenses/MIT The MIT License (MIT) | ||
* | ||
* @link https://github.com/mmeyer2k/dcrypt | ||
*/ | ||
|
||
namespace Dcrypt\Exceptions; | ||
|
||
use Exception; | ||
|
||
/** | ||
* A handler for key exceptions. | ||
* | ||
* @category Dcrypt | ||
* | ||
* @author Michael Meyer (mmeyer2k) <m.meyer2k@gmail.com> | ||
* @license http://opensource.org/licenses/MIT The MIT License (MIT) | ||
* | ||
* @link https://github.com/mmeyer2k/dcrypt | ||
*/ | ||
class InvalidKeyLengthException extends Exception | ||
{ | ||
protected $message = 'Key must be at least 32 bytes'; | ||
} |
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
Oops, something went wrong.