PHPackages                             optiwariindia/cryptography - 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. optiwariindia/cryptography

ActiveLibrary[Security](/categories/security)

optiwariindia/cryptography
==========================

Easy encryption with AES algo

1.0(4y ago)08MITPHP

Since Jul 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/optiwariindia/cryptography)[ Packagist](https://packagist.org/packages/optiwariindia/cryptography)[ RSS](/packages/optiwariindia-cryptography/feed)WikiDiscussions master Synced 3w ago

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

Cryptography :- A set of libraries to provide cryptography support to php
=========================================================================

[](#cryptography---a-set-of-libraries-to-provide-cryptography-support-to-php)

Features
--------

[](#features)

- Multiple Algorithum Support
- Installable thorugh composer
- Multilanguage Exceptions
- Easy Setup and use

Why should you use
------------------

[](#why-should-you-use)

We have been working on many encryption methods and implementing them into the project. The basic idea of this library is to make your project secure enough for your customers. You can store important information like credentials etc.

How to use
----------

[](#how-to-use)

### Installation

[](#installation)

Install using composer `composer require optiwariindia/cryptography`

#### Initialize

[](#initialize)

`$crypt=new optiwariindia\cryptography();`

#### List Supported Algorithms

[](#list-supported-algorithms)

`print_r($crypt->listAlgo());`

#### Encrypt

[](#encrypt)

`$crypt->algo("AES-128-CBC");`

`$iv=$crypt->iv();`

`$crypt->key("SuperSecretKey");`

`list($cypher,$tag)=$crypt->encrypt("message");`

#### Decrypt

[](#decrypt)

`$crypt->algo("AES-128-CBC");`

`$iv=$crypt->iv();`

`$crypt->key("SuperSecretKey");`

`$text=$crypt->decrypt($cypher,$tag);`

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

1822d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/optiwariindia-cryptography/health.svg)

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

###  Alternatives

[mews/purifier

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

2.0k18.7M142](/packages/mews-purifier)[edamov/pushok

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key) or certificate-based authentication

4103.6M18](/packages/edamov-pushok)[ass/xmlsecurity

The XmlSecurity library is written in PHP for working with XML Encryption and Signatures

955.7M35](/packages/ass-xmlsecurity)[spomky-labs/php-aes-gcm

AES GCM (Galois Counter Mode) PHP implementation.

715.0M20](/packages/spomky-labs-php-aes-gcm)[acmephp/ssl

PHP wrapper around OpenSSL extension providing SSL encoding, decoding, parsing and signing features

151.3M4](/packages/acmephp-ssl)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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