PHPackages                             robsonala/laravel-crypto-user - 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. robsonala/laravel-crypto-user

AbandonedLibrary

robsonala/laravel-crypto-user
=============================

Cryptography tools for Laravel linked with User's table including Eloquent support

0.3.4(6y ago)1128MITPHPPHP &gt;=7.0CI failing

Since Jan 3Pushed 6y agoCompare

[ Source](https://github.com/robsonala/laravel-crypto-user)[ Packagist](https://packagist.org/packages/robsonala/laravel-crypto-user)[ RSS](/packages/robsonala-laravel-crypto-user/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (15)Used By (0)

Laravel Crypto User
===================

[](#laravel-crypto-user)

Cryptography tools for Laravel linked with User's table including Eloquent support

[![Build Status](https://camo.githubusercontent.com/a6bd296fb939452b6a76fac2e0fb5ac8e926f32a10e0d03e80d3e25187ba1a4a/68747470733a2f2f7472617669732d63692e6f72672f726f62736f6e616c612f6c61726176656c2d63727970746f2d757365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/robsonala/laravel-crypto-user)

---

Installation:
-------------

[](#installation)

```
php artisan vendor:publish
// Select `Robsonala\CryptoUser\CryptoUserProvider`
php artisan migrate

```

Tutorial:
---------

[](#tutorial)

### STEP 1 - Set 'UserEncrypt Trait' on User's model

[](#step-1---set-userencrypt-trait-on-users-model)

```
...
use Robsonala\CryptoUser\Traits\UserEncrypt;
...
use Notifiable, UserEncrypt;
...

```

### STEP 2 - Create register key for users (RegisterController.php)

[](#step-2---create-register-key-for-users-registercontrollerphp)

```
...
use Robsonala\CryptoUser\Services\Actions;
...
protected function create(array $data)
{
    $user = User::create([
        'name' => $data['name'],
        'email' => $data['email'],
        'password' => bcrypt($data['password']),
    ]);

    Actions::register($user, $data['password']);

    return $user;
}
...

```

### STEP 3 - Set key on memory when user login(LoginController.php)

[](#step-3---set-key-on-memory-when-user-loginlogincontrollerphp)

```
...
use Robsonala\CryptoUser\Services\Actions;
...
protected function authenticated($request, $user)
{
    Actions::login($user, $request->password);
}
...

```

STEP 4 - Set the 'CryptData Trait' on every desired model
---------------------------------------------------------

[](#step-4---set-the-cryptdata-trait-on-every-desired-model)

```
...
use Robsonala\CryptoUser\Traits\CryptData;
...
use CryptData;

protected $crypt_attributes = [
    'name'
];
...

```

Extra features:
---------------

[](#extra-features)

You must the key always you update the user's password
------------------------------------------------------

[](#you-must-the-key-always-you-update-the-users-password)

```
...
use Robsonala\CryptoUser\Services\Actions;
...
$old = $request->get('current-password');
$new = $request->get('new-password');

$user = Auth::user();

Actions::updatePassword($user, $old, $new);
...

```

Share user's passphrase with another user
-----------------------------------------

[](#share-users-passphrase-with-another-user)

```
...
use Robsonala\CryptoUser\Services\Actions;
...

// Owner of the passphrase
$user = Auth::user();
$user_passphrase = '...';

// User that will receive the passprhase
$another_user = User::find(...);

Actions::sharePassphrase($user, $another_user, $user_passphrase);
...

```

---

TODO
----

[](#todo)

- Create a proper documentation

---

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~24 days

Recently: every ~70 days

Total

14

Last Release

2373d ago

### Community

Maintainers

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

---

Top Contributors

[![robsonala](https://avatars.githubusercontent.com/u/4273567?v=4)](https://github.com/robsonala "robsonala (24 commits)")[![danabrey](https://avatars.githubusercontent.com/u/10567440?v=4)](https://github.com/danabrey "danabrey (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/robsonala-laravel-crypto-user/health.svg)

```
[![Health](https://phpackages.com/badges/robsonala-laravel-crypto-user/health.svg)](https://phpackages.com/packages/robsonala-laravel-crypto-user)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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