PHPackages                             elevenstack/gencriptor - 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. elevenstack/gencriptor

ActiveLibrary[Security](/categories/security)

elevenstack/gencriptor
======================

This is a packege that help you whit the security of your password in your aplication or in a system

3.0.0(5y ago)18MITPHPPHP ^7.2

Since May 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Guilherme-j10/Gencriptor)[ Packagist](https://packagist.org/packages/elevenstack/gencriptor)[ RSS](/packages/elevenstack-gencriptor/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (5)Used By (0)

Gencriptor
==========

[](#gencriptor)

[![Packagist PHP Version Support](https://camo.githubusercontent.com/61e741213808a14037af798d9aadfe5757c18eee0a295debd02273b1eb279864/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f656c6576656e737461636b2f67656e63726970746f723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/61e741213808a14037af798d9aadfe5757c18eee0a295debd02273b1eb279864/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f656c6576656e737461636b2f67656e63726970746f723f7374796c653d666c61742d737175617265)[![Packagist License](https://camo.githubusercontent.com/2e31647a3d74b98cff44f79ae27edbfbb08384ea4eb65b6eae85d53731ed69d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656c6576656e737461636b2f67656e63726970746f723f636f6c6f723d677261267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2e31647a3d74b98cff44f79ae27edbfbb08384ea4eb65b6eae85d53731ed69d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656c6576656e737461636b2f67656e63726970746f723f636f6c6f723d677261267374796c653d666c61742d737175617265)[![Packagist Version](https://camo.githubusercontent.com/7665b9fef1d6657371c3a6f88fa3857fe3eaea328238eaa8b76e4ae90eff12f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6576656e737461636b2f67656e63726970746f723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7665b9fef1d6657371c3a6f88fa3857fe3eaea328238eaa8b76e4ae90eff12f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6576656e737461636b2f67656e63726970746f723f7374796c653d666c61742d737175617265)[![Scrutinizer code quality (GitHub/Bitbucket)](https://camo.githubusercontent.com/88f26602660b4a94b0d09021b269128408583a07bc2a6f069fd3e4aee06dc075/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f4775696c6865726d652d6a31302f47656e63726970746f722f6d61737465723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/88f26602660b4a94b0d09021b269128408583a07bc2a6f069fd3e4aee06dc075/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f4775696c6865726d652d6a31302f47656e63726970746f722f6d61737465723f7374796c653d666c61742d737175617265)[![GitHub code size in bytes](https://camo.githubusercontent.com/6d6e52902e2edb056998d42abdb5fa92267192c419a05d97b6b908bf2b18e69b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f4775696c6865726d652d6a31302f47656e63726970746f723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/6d6e52902e2edb056998d42abdb5fa92267192c419a05d97b6b908bf2b18e69b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f4775696c6865726d652d6a31302f47656e63726970746f723f7374796c653d666c61742d737175617265)[![GitHub stars](https://camo.githubusercontent.com/2f15a26bb8c14813f28b687441cfbcac3de28440e0d6b6b1dd1b1843e79c6853/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4775696c6865726d652d6a31302f47656e63726970746f723f7374796c653d666c61742d737175617265)](https://github.com/Guilherme-j10/Gencriptor/stargazers?style=for-the-badge)

This is a packege that help you to encripty passwords and create password for your aplication with security, so in below you can see some methods that can use.

Installation using composer
---------------------------

[](#installation-using-composer)

in cli:

```
$ composer require elevenstack/Gencriptor

```

composer.json file:

```
"require":{
    "elevenstack/Gencriptor": "^1.0"
}
```

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

[](#how-to-use)

- getstring\_secur(size:int, special\_caractere:bool);
- encString(password:string);
- decString(password:string);

Exemple of getpassword();

```
    require_once __DIR__."venodr/autoload.php";
    use elevenstack\Gencriptor\Gencriptor;

    $pass = new Gencriptor();
    $result = $pass->getstring_secur(8, false);

    echo $result;
    //G1JCOT7V
```

if you want a method that can undo the security, in first you have use this method 'encString()' to return a password encrypeted and for decrypt the returned password by encString() you have use 'decString()', so thus verifications can be do.

Example of encString(); and decString();

```
    require_once __DIR__."venodr/autoload.php";
    use elevenstack\Gencriptor\Gencriptor;

    $pass = new Gencriptor();
    $crypted = $pass->encString('anypass');
    echo $crypted;
    //LWVPdi1lT3Z4NEc4JVQ/SDRYa0xuRTNDeDRHOA

    $descrypted = $pass->decString('LWVPdi1lT3Z4NEc4JVQ/SDRYa0xuRTNDeDRHOA');
    echo $descrypted;
    //anypass
```

Example of verification using encpass and decpass:

```
    require_once __DIR__."venodr/autoload.php";
    use elevenstack\Gencriptor\Gencriptor;

    $pass = new Gencriptor();
    $crypted = $pass->encString('pass');
    echo $crypted; //LWVPdi1lT3Z4NEc4JVQ/SA

    $descrypted = $pass->decString('LWVPdi1lT3Z4NEc4JVQ/SA');

    if($descrypted == 'pass'){
        echo "Open access";
    }else{
        echo "Error try again";
    }
```

Requirements
------------

[](#requirements)

The package is suported by this versions:

- PHP &gt;= 7.2

Author
------

[](#author)

This pakcage was created and is maintained by Guilherme-j10. if you have any questions can contact me by my e-mail .

License
-------

[](#license)

MIT License

Copyright (c) 2019 Johnny Mast

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

2080d ago

Major Versions

1.0.1 → 2.0.02020-08-16

2.0.0 → 3.0.02020-09-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1130f23dbe9734030ee2ffc2cfe65be2d65b58fbe3cc4fc9811a6eb22c95bf5?d=identicon)[Guilherme-j10](/maintainers/Guilherme-j10)

---

Top Contributors

[![Guilherme-j10](https://avatars.githubusercontent.com/u/55926786?v=4)](https://github.com/Guilherme-j10 "Guilherme-j10 (28 commits)")

---

Tags

securitycryptoElevenStackGencriptor

### Embed Badge

![Health badge](/badges/elevenstack-gencriptor/health.svg)

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

###  Alternatives

[phpseclib/phpseclib

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

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

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

PHPackages © 2026

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