Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
package is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Halama committed May 12, 2015
1 parent d84f42b commit cd67837
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 280 deletions.
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

27 changes: 3 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
# Keboola PHP Encryption [![Build Status](https://travis-ci.org/keboola/php-encryption.png?branch=master)](https://travis-ci.org/keboola/php-encryption)
[![Latest Stable Version](https://poser.pugx.org/keboola/php-encryption/v/stable.svg)](https://packagist.org/packages/keboola/php-encryption)
[![License](https://poser.pugx.org/keboola/php-encryption/license.svg)](https://packagist.org/packages/keboola/php-encryption)
[![Total Downloads](https://poser.pugx.org/keboola/php-encryption/downloads.svg)](https://packagist.org/packages/keboola/php-encryption)
# Keboola PHP Encryption

Wrapper for PHP [mcrypt](http://php.net/manual/en/book.mcrypt.php) encryption algorithms.
**THIS LIBRARY IS DEPRECATED**

## Currently supported ciphers
* AES in CBC mode with [PKCS7 padding](http://en.wikipedia.org/wiki/Padding_(cryptography\)#PKCS7)
* Encryption strength is determined by key length. Key lengths 16, 24, 32 corresponds with 128, 192, 256 bit encryption.

## Usage

```php
use Keboola\Encryption\AesEncryptor;
$encryptor = new AesEncryptor('UfhZPgPLpz7YVjXwNGTpUD8WpoddfpXn'); // 256 bit key
$encryptedMessage = $encryptor->encrypt($inputMessage);
```

## Resources
* https://gist.github.com/RiANOl/1077723
* http://php.net/manual/en/function.mcrypt-encrypt.php
* https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation
* http://www.coderelic.com/2011/10/aes-256-encryption-with-php/
* http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
* http://blog.agilebits.com/2013/03/09/guess-why-were-moving-to-256-bit-aes-keys/
Please consider using [defuse/php-encryption](https://github.com/defuse/php-encryption)
19 changes: 5 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
{
"name": "keboola/php-encryption",
"description": "Mcrypt wrapper - AES encryption support",
"description": "Mcrypt wrapper. This library is deprecated in favor of https://github.com/defuse/php-encryption",
"license": "MIT",
"keywords": ["security", "encryption", "AES", "mcrypt", "cipher"],
"keywords": ["security", "encryption", "AES", "mcrypt", "cipher", "deprecated"],
"authors": [
{
"name": "Martin Halamicek",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.3.3",
"ext-mcrypt": "*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
},
"autoload": {
"psr-0": {
"Keboola\\Encryption": "src/"
}
}
"suggest": {
"defuse/php-encryption": "Use this one for secure encryption."
}
}
Binary file added composer.phar
Binary file not shown.
17 changes: 0 additions & 17 deletions phpunit.xml

This file was deleted.

102 changes: 0 additions & 102 deletions src/Keboola/Encryption/AesEncryptor.php

This file was deleted.

24 changes: 0 additions & 24 deletions src/Keboola/Encryption/EncryptorInterface.php

This file was deleted.

61 changes: 0 additions & 61 deletions tests/Keboola/Encryption/AesEncryptorTest.php

This file was deleted.

29 changes: 0 additions & 29 deletions tests/benchmark.php

This file was deleted.

0 comments on commit cd67837

Please sign in to comment.