akira/laravel-crypto

This is my package laravel-crypto
3,136 8
Install
composer require akira/laravel-crypto
Latest Version:0.3.0
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:10
License:MIT
Last Updated:Sep 3, 2026
Links: GitHub  ·  Packagist
Maintainer: kidiatoliny

img.png

Laravel Crypto is a Laravel package designed to make encryption and decryption straightforward. It supports:

  • Secure encryption using modern algorithms such as AES-256-CBC.
  • Customizable configuration, allowing you to define key sizes, algorithms, iterations, and more.
  • Effortless integration with Laravel's configuration and service container.
  • Randomized Initialization Vectors (IVs) for enhanced encryption security.

Whether you're building an application that requires secure data storage, transmitting sensitive information, or complying with data protection regulations, Laravel Crypto has you covered.

Quick Start

Installation

composer require akira/laravel-crypto

Generate Key

php artisan crypto:generate-key

Add to your .env:

CRYPTO_ENCRYPTION_KEY=your-generated-key-here

Usage

// Using helper function (recommended - has IDE autocomplete ⭐)
$encrypted = crypto()->encrypt('Hello World');
$decrypted = crypto()->decrypt($encrypted);

// Or using facade
use Akira\LaravelCrypto\Facades\Crypto;
$encrypted = Crypto::encrypt('Hello World');
$decrypted = Crypto::decrypt($encrypted);

Documentation

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

akira/filament-tool-kit

This is my package filament-tool-kit

7,518 8
akira/laravel-auth-logs

Track, query, and act on authentication activity in your Laravel application. Au...

5,026 6
akira/filament-switch-panel

This is my package filament-switch-panel

5,000 5
akira/filament-slim-scrollbar

This is my package filament-slim-scrollbar

2,169 6
akira/laravel-sisp

this is a laravel package to handle SISP payment

1,419 16

Version History

Version Released PHP Laravel License
0.3.0 ^8.2 ^11.0||^12.0 ||^13.0 MIT
0.2.1 ^8.2 ^11.0||^12.0 MIT
0.2.0 ^8.2 ^11.0||^12.0 MIT
0.1.1 ^8.2 ^11.0||^12.0 MIT
0.1.0 ^8.1 ^10.0||^11.0 MIT