php-encryption | Simple Encryption in PHP | Encryption library

 by   defuse PHP Version: v2.3.1 License: MIT

kandi X-RAY | php-encryption Summary

kandi X-RAY | php-encryption Summary

php-encryption is a PHP library typically used in Security, Encryption applications. php-encryption has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

[Downloads] This is a library for encrypting data with a key or password in PHP. It requires PHP 5.6 or newer and OpenSSL 1.0.1 or newer. We recommend using a version of PHP that [still has security support] which at the time of writing means PHP 7.3 or later. Using this library with an unsupported version of PHP could lead to security vulnerabilities. The current version of php-encryption is v2.3.1. This library is expected to remain stable and supported by its authors with security and bugfixes until at least January 1st, 2022. The library is a joint effort between [Taylor Hornby] and [Scott Arciszewski] as well as numerous open-source contributors. What separates this library from other PHP encryption libraries is, firstly, that it is secure. The authors used to encounter insecure PHP encryption code on a daily basis, so they created this library to bring more security to the ecosystem. Secondly, this library is "difficult to misuse." Like [libsodium] its API is designed to be easy to use in a secure way and hard to use in an insecure way.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              php-encryption has a medium active ecosystem.
              It has 3626 star(s) with 316 fork(s). There are 108 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 15 open issues and 321 have been closed. On average issues are closed in 450 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of php-encryption is v2.3.1

            kandi-Quality Quality

              php-encryption has 0 bugs and 0 code smells.

            kandi-Security Security

              php-encryption has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              php-encryption code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              php-encryption is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              php-encryption releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              php-encryption saves you 620 person hours of effort in developing the same functionality from scratch.
              It has 1442 lines of code, 63 functions and 14 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed php-encryption and discovered the below as its top functions. This is intended to give you an instant insight into php-encryption implemented functionality, and help decide if they suit your requirements.
            • Decrypt a resource .
            • Encrypt a resource .
            • Decrypt the ciphertext .
            • Decrypts a legacy ciphertext .
            • Pushes PBKDF2 .
            • Derive the keys from the secret
            • Loads a byte string from a SHA - 8 string .
            • Hash HMKDF .
            • Trim trailing whitespace
            • Unlock the key .
            Get all kandi verified functions for this library.

            php-encryption Key Features

            No Key Features are available at this moment for php-encryption.

            php-encryption Examples and Code Snippets

            No Code Snippets are available at this moment for php-encryption.

            Community Discussions

            QUESTION

            LibSodium functions return unreadable characters
            Asked 2021-Dec-11 at 12:26

            I am following along with a tutorial on encryption: https://php.watch/articles/modern-php-encryption-decryption-sodium. In working with the Sodium extension I'm just baffled by a few things. Googling is returning frustratingly little help. (Most of the results are just duplications of the php.net/manual.)

            1. In various articles I'm reading, the result of sodium_crypto_*_encrypt() is something familiar: ...

            ANSWER

            Answered 2021-Dec-10 at 21:42

            Came across https://stackoverflow.com/a/44874239/1128978 answering "PHP random_bytes returns unreadable characters"

            random_bytes generates an arbitrary length string of cryptographic random bytes...

            And suggests to use bin2hex to get readable characters. So amending my usages:

            Source https://stackoverflow.com/questions/70310082

            QUESTION

            Composer installation failed
            Asked 2021-May-21 at 16:29

            While running the Pimcore6.9 along with the symfony4.4 I had spotted some warnings:

            The MimetypeGuesser is depricated since symfony4.3 use MimeTypes instead.

            ...

            ANSWER

            Answered 2021-May-21 at 16:23

            Your composer.json already lists symfony/symfony as a required package. This contains symfony/mime - as long as you are using Symfony v4.3 or later. The MIME component did not exist before that.

            Source https://stackoverflow.com/questions/67640358

            QUESTION

            Composer 2.0.8 issue package-versions-deprecated
            Asked 2020-Dec-17 at 14:30

            Using php 7.2

            ...

            ANSWER

            Answered 2020-Dec-17 at 14:30

            This seems to be a problem with the virtual box filesystem. I created an issue to composer and hopefully more insight will be gained.

            https://github.com/composer/package-versions-deprecated/issues/21

            Source https://stackoverflow.com/questions/65149298

            QUESTION

            Why is the opcache not flushed?
            Asked 2020-Dec-16 at 10:13

            I use the guzzlehttp/guzzle package in Laravel 8. After upgrading to PHP 8, I get:

            Symfony\Component\ErrorHandler\Error\FatalError: Invalid opcode 117/2/0. in file ../vendor/defuse/php-encryption/src/Core.php on line 412

            nginx config:

            ...

            ANSWER

            Answered 2020-Dec-16 at 10:13

            I fixed it by temporarily setting opcache.optimization_level=0 in php.ini.

            Still according to this post, it's a known bug which should be fixed in PHP 8.0.1

            Source https://stackoverflow.com/questions/65034752

            QUESTION

            guzzlehttp/guzzle dosn't work after update php to php 8
            Asked 2020-Nov-30 at 21:18

            I use the guzzlehttp/guzzle package in Laravel 8. After upgrading to PHP 8, I get:

            Symfony\Component\ErrorHandler\Error\FatalError: Invalid opcode 117/2/0. in file ../vendor/defuse/php-encryption/src/Core.php on line 412

            composer.json:

            ...

            ANSWER

            Answered 2020-Nov-27 at 21:27

            The problem is not guzzlehttp/guzzle. The problem is, on Ubuntu 20.10 PHP8 does not clear the opcache. If you do opcache_reset(); before calling new \GuzzleHttp\Client;, then everything works.

            Source https://stackoverflow.com/questions/65033643

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install php-encryption

            Start with the [Tutorial](docs/Tutorial.md). You can find instructions for obtaining this library’s code securely in the [Installing and Verifying](docs/InstallingAndVerifying.md) documentation.
            [Crypto](docs/classes/Crypto.md)
            [File](docs/classes/File.md)
            [Key](docs/classes/Key.md)
            [KeyProtectedByPassword](docs/classes/KeyProtectedByPassword.md)

            Support

            This library is intended for server-side PHP software that needs to encrypt data at rest. If you are building software that needs to encrypt client-side, or building a system that requires cross-platform encryption/decryption support, we strongly recommend using [libsodium](https://download.libsodium.org/doc/bindings_for_other_languages) instead.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/defuse/php-encryption.git

          • CLI

            gh repo clone defuse/php-encryption

          • sshUrl

            git@github.com:defuse/php-encryption.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Reuse Pre-built Kits with php-encryption

            Consider Popular Encryption Libraries

            certbot

            by certbot

            Signal-Android

            by signalapp

            unlock-music

            by unlock-music

            client

            by keybase

            Signal-Server

            by signalapp

            Try Top Libraries by defuse

            password-hashing

            by defusePHP

            swatd

            by defuseC

            sockstress

            by defuseC