PHPackages                             ariffazmi/secure-encrypt - 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. ariffazmi/secure-encrypt

ActiveLibrary[Security](/categories/security)

ariffazmi/secure-encrypt
========================

Simple secure asymmetric encryption for php

1.0(9y ago)042MITPHPPHP &gt;=5.3.0

Since May 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/AriffAzmi/secure-encrypt)[ Packagist](https://packagist.org/packages/ariffazmi/secure-encrypt)[ RSS](/packages/ariffazmi-secure-encrypt/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Php secure asymmetric encryption
================================

[](#php-secure-asymmetric-encryption)

Install the Application
-----------------------

[](#install-the-application)

### Composer

[](#composer)

Run `composer require ariffazmi/secure-encrypt`

How To Use
==========

[](#how-to-use)

```
require_once __DIR__."/vendor/autoload.php";

use Secure\Encrypt;

function myhash(){

   return (new Encrypt());
}

//Encrypt
$encrypt_data = myhash()->encrypt("your data","mysecretkey");
$decrypt_data = myhash()->decrypt($encrypt,"mysecretkey");

//Encrypt (return value with base64)
$encrypt_data = myhash()->encrypt("your data","mysecretkey",true);
$decrypt_data = myhash()->decrypt($encrypt,"mysecretkey",true);

```

Or

You can skip the above by doing this:

```
composer create-project ariffazmi/secure-encrypt

```

After successfull install, run this command : `composer make-example`. You will have example.php file in your project directory.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

3339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8551618dd9e3f543277425723daf91bb6e9771b10d6a31cb09014a272187a7d?d=identicon)[ariffazmi](/maintainers/ariffazmi)

---

Top Contributors

[![AriffAzmi](https://avatars.githubusercontent.com/u/11953470?v=4)](https://github.com/AriffAzmi "AriffAzmi (27 commits)")

---

Tags

phpencryptionasymmetric

### Embed Badge

![Health badge](/badges/ariffazmi-secure-encrypt/health.svg)

```
[![Health](https://phpackages.com/badges/ariffazmi-secure-encrypt/health.svg)](https://phpackages.com/packages/ariffazmi-secure-encrypt)
```

###  Alternatives

[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5283.3k30](/packages/ionux-phactor)[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.

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

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

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

PHPackages © 2026

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