[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8462":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":15,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":9,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":15,"starSnapshotCount":15,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},8462,"php-encryption","defuse\u002Fphp-encryption","defuse","Simple Encryption in PHP.",null,"PHP",3866,309,101,10,0,59.47,"MIT License",false,"master",true,[],"2026-06-12 04:00:39","php-encryption\n===============\n\n![Build Status](https:\u002F\u002Fapp.travis-ci.com\u002Fdefuse\u002Fphp-encryption.svg?branch=master)\n[![codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fdefuse\u002Fphp-encryption\u002Fbranch\u002Fmaster\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fdefuse\u002Fphp-encryption)\n[![Latest Stable Version](https:\u002F\u002Fposer.pugx.org\u002Fdefuse\u002Fphp-encryption\u002Fv\u002Fstable)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fdefuse\u002Fphp-encryption)\n[![License](https:\u002F\u002Fposer.pugx.org\u002Fdefuse\u002Fphp-encryption\u002Flicense)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fdefuse\u002Fphp-encryption)\n[![Downloads](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fdefuse\u002Fphp-encryption.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fdefuse\u002Fphp-encryption)\n\n```terminal\ncomposer require defuse\u002Fphp-encryption\n```\n\nThis is a library for encrypting data with a key or password in PHP. **It\nrequires PHP 5.6 or newer and OpenSSL 1.0.1 or newer.** We recommend using a\nversion of PHP that [still has security\nsupport](https:\u002F\u002Fwww.php.net\u002Fsupported-versions.php), which at the time of\nwriting means PHP 8.0 or later. Using this library with an unsupported\nversion of PHP could lead to security vulnerabilities.\n\nThe current version of `php-encryption` is v2.4.0. This library is expected to\nremain stable and supported by its authors with security and bugfixes until at\nleast January 1st, 2024.\n\nThe library is a joint effort between [Taylor Hornby](https:\u002F\u002Fdefuse.ca\u002F) and\n[Scott Arciszewski](https:\u002F\u002Fparagonie.com\u002Fblog\u002Fauthor\u002Fscott-arcizewski) as well\nas numerous open-source contributors.\n\nWhat separates this library from other PHP encryption libraries is, firstly,\nthat it is secure. The authors used to encounter insecure PHP encryption code on\na daily basis, so they created this library to bring more security to the\necosystem. Secondly, this library is \"difficult to misuse.\" Like\n[libsodium](https:\u002F\u002Fgithub.com\u002Fjedisct1\u002Flibsodium), its API is designed to be\neasy to use in a secure way and hard to use in an insecure way.\n\n\nDependencies\n------------\n\nThis library requires no special dependencies except for PHP 5.6 or newer with\nthe OpenSSL extensions (version 1.0.1 or later) enabled (this is the default).\nIt uses [random\\_compat](https:\u002F\u002Fgithub.com\u002Fparagonie\u002Frandom_compat), which is\nbundled in with this library so that your users will not need to follow any\nspecial installation steps.\n\nGetting Started\n----------------\n\nStart with the [**Tutorial**](docs\u002FTutorial.md). You can find instructions for\nobtaining this library's code securely in the [Installing and\nVerifying](docs\u002FInstallingAndVerifying.md) documentation.\n\nAfter you've read the tutorial and got the code, refer to the formal\ndocumentation for each of the classes this library provides:\n\n- [Crypto](docs\u002Fclasses\u002FCrypto.md)\n- [File](docs\u002Fclasses\u002FFile.md)\n- [Key](docs\u002Fclasses\u002FKey.md)\n- [KeyProtectedByPassword](docs\u002Fclasses\u002FKeyProtectedByPassword.md)\n\nIf you encounter difficulties, see the [FAQ](docs\u002FFAQ.md) answers. The fixes to\nthe most commonly-reported problems are explained there.\n\nIf you're a cryptographer and want to understand the nitty-gritty details of how\nthis library works, look at the [Cryptography Details](docs\u002FCryptoDetails.md)\ndocumentation.\n\nIf you're interested in contributing to this library, see the [Internal\nDeveloper Documentation](docs\u002FInternalDeveloperDocs.md).\n\nOther Language Support\n----------------------\n\nThis library is intended for server-side PHP software that needs to encrypt data at rest.\nIf you are building software that needs to encrypt client-side, or building a system that\nrequires cross-platform encryption\u002Fdecryption support, we strongly recommend using\n[libsodium](https:\u002F\u002Fdownload.libsodium.org\u002Fdoc\u002Fbindings_for_other_languages) instead.\n\nExamples\n---------\n\nIf the documentation is not enough for you to understand how to use this\nlibrary, then you can look at an example project that uses this library:\n\n- [encutil](https:\u002F\u002Fgithub.com\u002Fdefuse\u002Fencutil)\n- [fileencrypt](https:\u002F\u002Fgithub.com\u002Ftsusanka\u002Ffileencrypt)\n\nSecurity Audit Status\n---------------------\n\nThis code has not been subjected to a formal, paid, security audit. However, it\nhas received lots of review from members of the PHP security community, and the\nauthors are experienced with cryptography. In all likelihood, you are safer\nusing this library than almost any other encryption library for PHP.\n\nIf you use this library as a part of your business and would like to help fund\na formal audit, please [contact Taylor Hornby](https:\u002F\u002Fdefuse.ca\u002Fcontact.htm).\n\nPublic Keys\n------------\n\nThe GnuPG public key used to sign the current and new releases is available in\n[dist\u002Fsigningkey-new.asc](https:\u002F\u002Fgithub.com\u002Fdefuse\u002Fphp-encryption\u002Fraw\u002Fmaster\u002Fdist\u002Fsigningkey-new.asc). Its fingerprint is:\n\n```\n6DD6 E677 0281 5846 FC85  25A3 DD2E 507F 7BDB 1669\n```\n\nYou can verify it against Taylor Hornby's [contact\npage](https:\u002F\u002Fdefuse.ca\u002Fcontact.htm) and\n[twitter](https:\u002F\u002Ftwitter.com\u002FDefuseSec\u002Fstatus\u002F1670840796743081984).\n\nOlder releases were signed with a (now-expired) available in\n[dist\u002Fsigningkey-old.asc](https:\u002F\u002Fgithub.com\u002Fdefuse\u002Fphp-encryption\u002Fraw\u002Fmaster\u002Fdist\u002Fsigningkey-old.asc). The old key's fingerprint is:\n\n```\n2FA6 1D8D 99B9 2658 6BAC  3D53 385E E055 A129 1538\n```\n\nThe old key's fingerprint can be verified against Taylor Hornby's [contact page](https:\u002F\u002Fdefuse.ca\u002Fcontact.htm) and\n[twitter](https:\u002F\u002Ftwitter.com\u002FDefuseSec\u002Fstatus\u002F723741424253059074).\n\nA signature of this new key by the old key is available in\n[dist\u002Fsigningkey-new.asc.sig](https:\u002F\u002Fgithub.com\u002Fdefuse\u002Fphp-encryption\u002Fraw\u002Fmaster\u002Fdist\u002Fsigningkey-new.asc.sig).\n","defuse\u002Fphp-encryption 是一个用于在 PHP 中进行数据加密的库。它支持使用密钥或密码对数据进行加密，要求 PHP 5.6 或更高版本以及 OpenSSL 1.0.1 或更高版本。该库的设计注重安全性，避免了常见的不安全加密实践，并且易于正确使用而难以误用，类似于 libsodium 的设计理念。适用于需要在 PHP 应用中实现安全数据存储和传输的场景，如用户信息保护、敏感数据加密等。此外，由于其依赖较少（仅需 PHP 和 OpenSSL），易于集成到现有项目中。",2,"2026-06-11 03:18:09","top_language"]