PHPackages                             arokettu/encryptor - 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. arokettu/encryptor

ActiveLibrary[Security](/categories/security)

arokettu/encryptor
==================

CLI File Encryptor

1.2.3(6mo ago)164[1 PRs](https://github.com/arokettu/php-encryptor/pulls)MITPHPPHP ^8.2CI passing

Since Jul 24Pushed 3mo agoCompare

[ Source](https://github.com/arokettu/php-encryptor)[ Packagist](https://packagist.org/packages/arokettu/encryptor)[ Docs](https://sandfox.dev/php/encryptor.html)[ RSS](/packages/arokettu-encryptor/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (26)Used By (0)

File Encryptor
==============

[](#file-encryptor)

[![Packagist](https://camo.githubusercontent.com/662ce1dc696426efdb6d4ecddb91aea43bee150a57de051e59fd46fe7f24c183/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726f6b657474752f656e63727970746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/encryptor)[![Packagist](https://camo.githubusercontent.com/e8e24887626df980a19bad2cf82f060a75606662422d00851621f172b408fa7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61726f6b657474752f656e63727970746f722e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)[![Gitlab pipeline status](https://camo.githubusercontent.com/86e4c22801f0e7da9ec2021b8ad0e1ee1806ba1dd80efe5be33fa39b7ec8a207/68747470733a2f2f696d672e736869656c64732e696f2f6769746c61622f706970656c696e652f73616e64666f782f7068702d656e63727970746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://gitlab.com/sandfox/php-encryptor/-/pipelines)[![Codecov](https://camo.githubusercontent.com/f4249bdf3dc8bc22e77ef00aa1eb052db2ce47d1a655cd581cc2e947f259dc87/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f676c2f73616e64666f782f7068702d656e63727970746f722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gl/sandfox/php-encryptor/)

A small and simple tool to encrypt small files with with [libsodium](https://libsodium.gitbook.io/).

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

[](#installation)

Install for local user with composer:

```
composer global require arokettu/encryptor
```

Install globally by downloading prebuilt phar:

```
sudo wget https://github.com/arokettu/php-encryptor/releases/latest/download/encryptor.phar -O /usr/local/bin/encryptor
sudo chmod +x /usr/local/bin/encryptor
```

Simple usage
------------

[](#simple-usage)

Encrypt file:

```
encryptor encrypt filename.txt
```

Decrypt file:

```
encryptor decrypt filename.txt.encrypted
```

You will be interactively asked for the password

Documentation
-------------

[](#documentation)

Read full documentation here:

Also on Read the Docs:

License
-------

[](#license)

The library is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance74

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~143 days

Total

24

Last Release

194d ago

Major Versions

0.0.13 → 1.0.02019-08-23

PHP version history (4 changes)0.0.1PHP &gt;= 7.2

1.0.3PHP ^7.2 || ^8.0

1.1.0.alpha1PHP ^7.2 | ^8.0

1.2.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/963485?v=4)[Anton Smirnov](/maintainers/arokettu)[@arokettu](https://github.com/arokettu)

---

Top Contributors

[![arokettu](https://avatars.githubusercontent.com/u/963485?v=4)](https://github.com/arokettu "arokettu (152 commits)")

---

Tags

encryptionphpsodiumphpencryptionsodium

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/arokettu-encryptor/health.svg)

```
[![Health](https://phpackages.com/badges/arokettu-encryptor/health.svg)](https://phpackages.com/packages/arokettu-encryptor)
```

###  Alternatives

[stymiee/php-simple-encryption

The PHP Simple Encryption library is designed to simplify the process of encrypting and decrypting data while ensuring best practices are followed. By default is uses a secure encryption algorithm and generates a cryptologically strong initialization vector so developers do not need to becomes experts in encryption to securely store sensitive data.

448.0k](/packages/stymiee-php-simple-encryption)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)

PHPackages © 2026

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