PHPackages                             shiwildy/sencrypt - 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. shiwildy/sencrypt

ActiveLibrary[Security](/categories/security)

shiwildy/sencrypt
=================

A secure and simple encryption library using SHA-512, AES-256-CBC, and BASE64.

1.0(1y ago)010MITPHPPHP &gt;=7.4

Since Nov 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shiwildy/SEncrypt)[ Packagist](https://packagist.org/packages/shiwildy/sencrypt)[ RSS](/packages/shiwildy-sencrypt/feed)WikiDiscussions main Synced 1mo ago

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

SEncrypt
========

[](#sencrypt)

SEncrypt is a secure &amp; simple encryption library using SHA-512, AES-256-CBC, and BASE64. It provides easy-to-use methods for encrypting and decrypting data securely.

Installation
------------

[](#installation)

```
composer require shiwildy/sencrypt
```

Example
-------

[](#example)

```

```

How It Works ?
--------------

[](#how-it-works-)

### Encryption:

[](#encryption)

- Salt Generation: A random salt generated to enhance security.
- Key Derivation: Encryption key is derived from the provided password and generated salt using PBKDF2 Algoritm with SHA-512
- IV Generation: A random initialization vector \[IV\] generated for use on AES-256-CBC
- Combining Data: Salt, IV, and encrypted data are concatenated and then encoded using base64 to create final encrypted output.

### Decryption:

[](#decryption)

- Base64 Decode: Encrypted data is first decoded from Base64.
- Data Extraction: salt, IV, and encrypted text are extracted from decoded data.
- Key Derivation: Decryption key is derived using same method in encryption.
- Decryption: Encrypted data is decrypted using derived key and IV.
- Output: Decrypted text returned.

Contributing
------------

[](#contributing)

Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.

License
-------

[](#license)

This project licensed under The MIT License

Credits
-------

[](#credits)

-
- [https://www.tutorialspoint.com/php/php\_function\_hash\_pdkdf2.htm](https://www.tutorialspoint.com/php/php_function_hash_pdkdf2.htm)
-
-
-
-

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

562d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

encryptionencryptorlibrarypehapephpphp8phpencryptphplangphplibrarysencryptcryptographyencryptioncryptoaesencryptopensslshaencryptorsha512

### Embed Badge

![Health badge](/badges/shiwildy-sencrypt/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[poly-crypto/poly-crypto

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

127.8k1](/packages/poly-crypto-poly-crypto)[miladrahimi/phpcrypt

Encryption, decryption, and hashing tools for PHP projects

3171.5k2](/packages/miladrahimi-phpcrypt)

PHPackages © 2026

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