PHPackages                             bsn/cryptuser - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bsn/cryptuser

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

bsn/cryptuser
=============

User authentication, administration, and data encryption library.

v0.3(11y ago)06GPL-3.0+PHPPHP &gt;=5.3

Since Jan 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/bnielsen1965/cryptUser)[ Packagist](https://packagist.org/packages/bsn/cryptuser)[ RSS](/packages/bsn-cryptuser/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (6)Used By (0)

cryptUser
=========

[](#cryptuser)

cryptUser is a set of PHP class files used to create and manage user accounts. The user objects include the ability to use openSSL to encrypt user content.

---

INSTALLATION
============

[](#installation)

Copy the Class folder to your PHP application directory.

If your application is using a MySQL data source then you will need to create the database and the database user.

If your application is using a JSON data source then you will need to create the directory where the JSON files are stored and make sure your application has read and write access.

---

DEVELOPING
==========

[](#developing)

Developing with cryptUser requires only a CryptDataSource and a CryptUser instance in your application. Pass the CryptDataSource instance (either JSON or MySQL) to your new CryptUser instance and then execute the various user functions within your PHP application.

CryptDataSource
---------------

[](#cryptdatasource)

The CryptDataSource is an interface class used to specify the required functionality in the data source definitions. You must therefore create an instance of the finished class based on the interface to use a data source.

The API includes two data source implementations, CryptJSONSource and CryptMySQLSource. Each of these classes provide additional functionality beyond that required by the interface. I.E. CryptJSONSource provides some custom functions that can be used by your application to read and write your own JSON formatted files. And CryptMySQLSource provides functions to generate the SQL needed to create the users table in your database. See the API documentation for more details.

CryptUser
---------

[](#cryptuser-1)

The CryptUser class provides the functions for user administration and access to the user encryption functions.

Examples
--------

[](#examples)

The source tree includes an Examples directory where you can find some simple example scripts and applications that use both the JSON and MySQL data sources.

These examples will demonstrate how to use the API to create your own user administration pages and how to implement the encryption functions in your own application.

---

DOCUMENTATION
=============

[](#documentation)

The source tree includes a Documentation folder with HTML documentation generated from the source code using APIGen.

The API documentation can be viewed [here](http://bnielsen1965.github.io/cryptUser/).

---

TESTING
=======

[](#testing)

The Tests folder includes phpunit testing files. Copy this folder to your PHP application directory and run phpunit Tests/.

There are also example implementations for both a JSON or MySQL data source in the Examples/ directory. The JSON example will require proper write permissions on the directory to enable writing to the JSON based data file. When using the MySQL example a database must be provided and the connection settings set appropriately in the example index.php file.

---

BRANCH STRATEGY
===============

[](#branch-strategy)

master
------

[](#master)

The master branch contains the stable release versions.

full
----

[](#full)

The full branch contains the stable release plus all documentation and examples.

develop
-------

[](#develop)

The develop branch is unstable under development code.

---

###  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

Maturity52

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

Total

3

Last Release

4105d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bsn-cryptuser/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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