PHPackages                             dterranova/crypto-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. dterranova/crypto-bundle

AbandonedArchivedSymfony-bundle[Security](/categories/security)

dterranova/crypto-bundle
========================

dterranovaCryptoBundle

1355↓87.5%1PHP

Since Sep 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/davidterranova/dterranovaCryptoBundle)[ Packagist](https://packagist.org/packages/dterranova/crypto-bundle)[ RSS](/packages/dterranova-crypto-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

dterranova/crypto-bundle
========================

[](#dterranovacrypto-bundle)

This bundle provide file encryption with AES-256 Cipher The amount of memory used is independant of the file you encrypt.

Workflow
--------

[](#workflow)

### Encryption

[](#encryption)

The original file is read by the `chunk_file_size` and the encryption is done on this amount of data A folder is created in the `temp_folder` with the name of the original encrypted file Each encrypted part are written in this folder

### Decryption

[](#decryption)

By passing the original file name to the `decryptFile` method, the cryptoBundle use the corresponding folder with encrypted parts of the file to rebuild the original file

Installation
------------

[](#installation)

- Add to your composer file

```
{
    "require": {
        ...
        "dterranova/crypto-bundle": "dev-master"
    }
    ...
}
```

- Update your vendors `php composer.phar update`
- Add to your AppKernel

```
    // app/AppKernel.php
    public function registerBundles()
    {
        return array(
            // ...
            new dterranova\Bundle\CryptoBundle\dterranovaCryptoBundle(),
            // ...
        );
    }
```

- Add to your `app/config/config.yml`

```
# app/config/config.yml
dterranova_crypto:
    temp_folder: "%kernel.root_dir%/../web/YOUR_TEMP_FOLDER"
    chunk_file_size: 2 # The size (in Mb) of chunked files, more it is big more it will consume memory
```

Usage
-----

[](#usage)

- Encrypt a file

```
$cryto = $this->get("dterranova_crypto.crypto_adapter");
$crypto->encryptFile(ABSOLUTE_FILE_PATH, KEY);
```

- Decrypt a file

```
$cryto = $this->get("dterranova_crypto.crypto_adapter");
$crypto->decryptFile(ABSOLUTE_FILE_PATH, KEY, true);  // The same absolute file path
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a2eac0d80a6ecefe37c930822735aead3fb0fc03080791c42763a271e7d8978?d=identicon)[davidterranova](/maintainers/davidterranova)

### Embed Badge

![Health badge](/badges/dterranova-crypto-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dterranova-crypto-bundle/health.svg)](https://phpackages.com/packages/dterranova-crypto-bundle)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.0M134](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24772.0k35](/packages/paragonie-ecc)[fof/recaptcha

Increase your forum's security with Google reCAPTCHA

1436.9k](/packages/fof-recaptcha)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
