PHPackages                             jezzdk/statamic-secret - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jezzdk/statamic-secret

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jezzdk/statamic-secret
======================

v1.1(4y ago)1291[1 issues](https://github.com/jezzdk/statamic-secret/issues)[1 PRs](https://github.com/jezzdk/statamic-secret/pulls)PHP

Since Jan 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jezzdk/statamic-secret)[ Packagist](https://packagist.org/packages/jezzdk/statamic-secret)[ RSS](/packages/jezzdk-statamic-secret/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Statamic Secret
===============

[](#statamic-secret)

> With this addon you can store text that will be encrypted using generated RSA keys. The text will be decrypted in the control panel and when augmented, but no one will have a clue what the value is just by looking at the content files.

Features
--------

[](#features)

This addon:

- Adds a fieldtype that enables the user to store encrypted single- or multiline text
- Provides a command for generating RSA keys
- Provides a way to store the RSA keys in any disk that has been configured in `config/filesystem.php` (Pro only)

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require jezzdk/statamic-secret
```

You can set some .env variables to change options (the values below are the defaults):

```
// The RSA key length in bytes
STATAMIC_SECRET_KEY_LENGTH=4096

// The path and filename for the public key
STATAMIC_SECRET_KEY_PUBLIC=statamic_secret.pub

// The path and filename for the private key
STATAMIC_SECRET_KEY_PRIVATE=statamic_secret

// The filesystem disk to use as storage (Pro only)
STATAMIC_SECRET_DISK=local

```

You can publish the config file with:

```
php artisan vendor:publish --tag=statamic-secret-config

```

How to Use
----------

[](#how-to-use)

After installing the addon, you can generate the keys with the command below. You can use the same command to re-generate them for any reason:

```
php please secret:generate

```

You will be prompted to overwrite the keys if files with the configured names already exist.

> You should NOT commit the keys to version control. Nor should you place them anywhere publicly accessible.

Once installed, a new `Secret` fieldtype is selectable from the field picker.

---

Disclaimer: I've borrowed some code regarding key generation from the excellent [Eloquent Encryption](https://github.com/RichardStyles/EloquentEncryption) package by [@RichardStyles](https://github.com/RichardStyles). Go check it out!

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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 ~39 days

Total

2

Last Release

1644d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/139632?v=4)[Jess Stopa](/maintainers/jezzdk)[@jezzdk](https://github.com/jezzdk)

---

Top Contributors

[![jezzdk](https://avatars.githubusercontent.com/u/139632?v=4)](https://github.com/jezzdk "jezzdk (2 commits)")

### Embed Badge

![Health badge](/badges/jezzdk-statamic-secret/health.svg)

```
[![Health](https://phpackages.com/badges/jezzdk-statamic-secret/health.svg)](https://phpackages.com/packages/jezzdk-statamic-secret)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

4.0k27.9k](/packages/azuracast-azuracast)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M672](/packages/shopware-core)[phpseclib/phpseclib2_compat

phpseclib 2.0 polyfill built with phpseclib 3.0

122.2M18](/packages/phpseclib-phpseclib2-compat)[shopware/app-php-sdk

Shopware App SDK for PHP

15120.5k3](/packages/shopware-app-php-sdk)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9082.3k](/packages/n1ebieski-ksef-php-client)

PHPackages © 2026

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