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 4w 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 27% 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

1767d 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

[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)[ass/xmlsecurity

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

955.6M30](/packages/ass-xmlsecurity)

PHPackages © 2026

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