定制 akira/laravel-crypto 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

akira/laravel-crypto

最新稳定版本:0.2.1

Composer 安装命令:

composer require akira/laravel-crypto

包简介

This is my package laravel-crypto

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.

统计信息

  • 总下载量: 206
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-30