PHPackages                             senha/cript - 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. senha/cript

ActiveLibrary[Security](/categories/security)

senha/cript
===========

Encriptador para senhas em php

v0.0.1(2y ago)03MITPHPPHP ^8.0|^8.1

Since Oct 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/paulo102121/senha-cript)[ Packagist](https://packagist.org/packages/senha/cript)[ RSS](/packages/senha-cript/feed)WikiDiscussions master Synced 1mo ago

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

Helper to encrypt strings with custom key with php
==================================================

[](#helper-to-encrypt-strings-with-custom-key-with-php)

[![Latest Stable Version](https://camo.githubusercontent.com/47c334f1f7b33bfcfc02709434a030ca7e84e01d092c4a959b4d8e8938432198/687474703a2f2f706f7365722e707567782e6f72672f73656e68612f63726970742f76)](https://packagist.org/packages/senha/cript) [![Total Downloads](https://camo.githubusercontent.com/e60a53923b89837788ff1bed8d7a0eb206923a964b8ad7a99250d82ae19828f4/687474703a2f2f706f7365722e707567782e6f72672f73656e68612f63726970742f646f776e6c6f616473)](https://packagist.org/packages/senha/cript) [![Latest Unstable Version](https://camo.githubusercontent.com/f7de7f7edaa3b2e5f72941ec28ddb2c3c109197e8703495771de2df2ed43f182/687474703a2f2f706f7365722e707567782e6f72672f73656e68612f63726970742f762f756e737461626c65)](https://packagist.org/packages/senha/cript) [![License](https://camo.githubusercontent.com/7977d23b92a82860a952e9d8752b07c7f1589c70c1bd93e68a0a2deecf9c0a2b/687474703a2f2f706f7365722e707567782e6f72672f73656e68612f63726970742f6c6963656e7365)](https://packagist.org/packages/senha/cript) [![PHP Version Require](https://camo.githubusercontent.com/9fee704671526a76ecae95ca00b20e483e42b534af46ee52a1633a3527daa0f2/687474703a2f2f706f7365722e707567782e6f72672f73656e68612f63726970742f726571756972652f706870)](https://packagist.org/packages/senha/cript)

> Note: It's converted to base\_64 in order to save in mysql

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

[](#installation)

composer require senha/cript

Usage
-----

[](#usage)

use Senha\\Cript\\SaltCrypt;

$mykey = "mykey";

$secret = "password";

$scp = new SaltCrypt($mykey, $secret);

$encrypted = $scp-&gt;encrypt();

$decrypted = $scp-&gt;decrypt($mykey);

Output:lHi57dDf8qNWmhbq8M2s82TMplWWU9Yqr0BQptZCzik5p6y5yHzXR4E0SLJVJaBcgrUf7NjZsG+SEw==

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24db1711a38e8baa38366a58a98941e0acb5776b74184ad8395ed0cdc0df2ccc?d=identicon)[paulo102121](/maintainers/paulo102121)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/senha-cript/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

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

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

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

A PHP library for XML Security

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

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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