PHPackages                             emalherbi/myopenssl - 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. emalherbi/myopenssl

ActiveLibrary[Security](/categories/security)

emalherbi/myopenssl
===================

My OpenSSL

2.0.0(4y ago)111MITPHPPHP &gt;= 5.0.0

Since Apr 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/emalherbi/MyOpenSSL)[ Packagist](https://packagist.org/packages/emalherbi/myopenssl)[ Docs](https://github.com/emalherbi/OpenSSL)[ RSS](/packages/emalherbi-myopenssl/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

MyOpenSSL
=========

[](#myopenssl)

Install
=======

[](#install)

```
composer require emalherbi/myopenssl

```

Usage
=====

[](#usage)

```
# require_once '../src/MyOpenSSL.php';
require_once 'vendor/autoload.php';

$ivSSL = 'klEUGdjU4M827qruJdLZVTcVYbCsWoVG';
$hashSSL = 'WK3judku9bOVPjprhrvU2xwCPwDNk4QN';

$openSSL = new MyOpenSSL\MyOpenSSL($hashSSL, $ivSSL);

$key_public = 'ABC';

echo '';
echo 'String Token:'.$key_public."\n";

$key_encrypt = $openSSL->encrypt($key_public);
echo 'Encrypted String:'.$key_encrypt."\n";

$key_decrypt = $openSSL->decrypt($key_encrypt);
echo 'Decrypted string:'.$key_decrypt."\n";

if ($key_public == $key_decrypt) {
    echo "Correct authentication\n";
}

echo '';
```

Output Usage
============

[](#output-usage)

```
String Token:ABC
Encrypted String:dTBYUE9SZnpHS1BjN0UwcTFQRDBZUT09
Decrypted string:ABC
Correct authentication

```

References
==========

[](#references)

[aalonzolu](https://gist.github.com/aalonzolu/69f63b54b6c94b9518c4e057cc88d267)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

1485d ago

Major Versions

1.0.0 → 2.0.02022-04-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/78209cde44e95321c282224a567bb219aa794e78ce00db2e13be102108420d56?d=identicon)[emalherbi](/maintainers/emalherbi)

---

Top Contributors

[![emalherbi](https://avatars.githubusercontent.com/u/94532309?v=4)](https://github.com/emalherbi "emalherbi (3 commits)")

---

Tags

composerdecryptencryptopensslphp

### Embed Badge

![Health badge](/badges/emalherbi-myopenssl/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

2.0k16.7M112](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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