awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
defuse avatar

defuse/php-encryption

0
View on GitHub↗
3,866 stars·309 forks·PHP·MIT·17 views

Php Encryption

php-encryption is a symmetric encryption library for PHP that provides tools for authenticated encryption and key derivation to ensure data confidentiality and integrity. It functions as a cryptography toolkit that wraps complex primitives into simplified interfaces to prevent common implementation errors.

The library includes a binary-safe ciphertext serializer to maintain data structure during storage and transmission, as well as a password-based key derivation tool that transforms low-entropy passwords into cryptographically strong keys through iterative processes.

The project covers a broad security surface, including the encryption of sensitive application data and local files. It incorporates constant-time comparison logic to prevent timing side-channel attacks and utilizes randomized initialization vectors for every encryption operation.

Features

  • Symmetric Encryption - Provides a comprehensive toolkit for symmetric encryption of application data within PHP.
  • Authenticated Encryption - Provides authenticated encryption to ensure both data confidentiality and integrity.
  • Data Encryption - Provides utilities for transforming sensitive information into secure encrypted formats.
  • Key Derivation Functions - Transforms low-entropy passwords into strong cryptographic keys using iterative key derivation functions.
  • PHP Cryptography Toolkits - Provides a simplified toolkit of cryptographic interfaces for securing sensitive data in PHP.
  • Ciphertext Serialization - Implements a binary-safe serialization format for encrypted data to prevent corruption during storage.
  • Cryptographic Interface Wrappers - Wraps complex cryptographic primitives in simplified interfaces to prevent implementation errors.
  • Security Hardening - Applies security best practices to the PHP implementation to prevent common cryptographic errors.
  • File Encryptions and Decryptions - Enables secure encryption and decryption of local files to ensure confidentiality.
  • Randomized Initialization Vectors - Generates random initialization vectors for every encryption operation to ensure distinct ciphertexts.
  • Timing-Side-Channel Protections - Employs constant-time comparison logic to protect against timing side-channel attacks.
  • PHP Cryptography - Library for secure data encryption with keys or passwords.
  • Cryptography Libraries - Library for symmetric-key encryption in PHP applications.
  • PHP Security Libraries - A library for secure, modern data encryption.
  • Security and Encryption - Implements secure data encryption.

Star history

Star history chart for defuse/php-encryptionStar history chart for defuse/php-encryption

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Php Encryption

These projects share indexed features with Php Encryption. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • krzyzanowskim/cryptoswiftkrzyzanowskim avatar

    krzyzanowskim/CryptoSwift

    10,556View on GitHub↗

    CryptoSwift is a cryptography library implemented entirely in the Swift programming language. It provides a collection of standard cryptographic algorithms for encryption, decryption, and hashing without relying on native C libraries or system frameworks. The library supports symmetric and asymmetric encryption, including RSA key generation and signature management. It features authenticated encryption schemes and the ability to generate cryptographic digests for data integrity verification. The toolset covers message authentication codes, secure key derivation from passwords, and data paddi

    Swiftaesaes-gcmcipher
    View on GitHub↗10,556
  • jedisct1/libsodiumjedisct1 avatar

    jedisct1/libsodium

    13,467View on GitHub↗

    Libsodium is a portable, C-based cryptographic library that provides a collection of modern primitives for encryption, decryption, digital signatures, password hashing, and secure key exchange. It is designed to facilitate secure communication and data integrity across diverse hardware architectures and operating systems. The library distinguishes itself by utilizing constant-time primitive execution to prevent side-channel attacks and employing memory-hard algorithms to increase the difficulty of brute-force password attacks. It abstracts complex mathematical operations into simplified inter

    Cccryptocryptography
    View on GitHub↗13,467
  • brix/crypto-jsbrix avatar

    brix/crypto-js

    16,384View on GitHub↗

    crypto-js is a JavaScript cryptography library providing a collection of standard cryptographic algorithms and data transformation tools. It functions as a symmetric encryption toolset, a cryptographic hash implementation, and a password derivation tool for the JavaScript environment. The library enables the protection of sensitive data through symmetric encryption and the production of fixed-size data digests to verify integrity. It includes utilities for converting user passwords into secure cryptographic keys and a data format converter for translating information between Base64, Hex, and

    JavaScript
    View on GitHub↗16,384
  • guanzhi/gmsslguanzhi avatar

    guanzhi/GmSSL

    6,075View on GitHub↗

    GmSSL is an open-source cryptographic library that implements the Chinese national cryptographic standards SM2, SM3, SM4, SM9, and ZUC as a unified algorithm suite. It provides a comprehensive set of cryptographic primitives including symmetric and asymmetric encryption, digital signatures, hashing, and key exchange, all built around these national standards for government and enterprise security applications. The library distinguishes itself through several integration capabilities. It includes an OpenSSL compatibility layer that maps GmSSL functions to OpenSSL API calls, enabling drop-in re

    Ccryptoencryptionpairing
    View on GitHub↗6,075
Compare all 30 related projects→

Frequently asked questions

What does defuse/php-encryption do?

php-encryption is a symmetric encryption library for PHP that provides tools for authenticated encryption and key derivation to ensure data confidentiality and integrity. It functions as a cryptography toolkit that wraps complex primitives into simplified interfaces to prevent common implementation errors.

What are the main features of defuse/php-encryption?

The main features of defuse/php-encryption are: Symmetric Encryption, Authenticated Encryption, Data Encryption, Key Derivation Functions, PHP Cryptography Toolkits, Ciphertext Serialization, Cryptographic Interface Wrappers, Security Hardening.

Which projects share features with defuse/php-encryption?

Projects with overlapping indexed features include: krzyzanowskim/cryptoswift — CryptoSwift is a cryptography library implemented entirely in the Swift programming language. It provides a collection… jedisct1/libsodium — Libsodium is a portable, C-based cryptographic library that provides a collection of modern primitives for encryption,… brix/crypto-js — crypto-js is a JavaScript cryptography library providing a collection of standard cryptographic algorithms and data… guanzhi/gmssl — GmSSL is an open-source cryptographic library that implements the Chinese national cryptographic standards SM2, SM3,… weidai11/cryptopp — Crypto++ is a comprehensive C++ cryptographic library that implements a broad range of algorithms for symmetric and… phpseclib/phpseclib — phpseclib is a pure-PHP cryptographic library that provides a comprehensive suite of cryptographic operations entirely…