php-encryption | cryptography API wrapping the Sodium library

 by   dwgebler PHP Version: 1.0.0 License: MIT

kandi X-RAY | php-encryption Summary

kandi X-RAY | php-encryption Summary

php-encryption is a PHP library. php-encryption has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

A cryptography API wrapping the Sodium library, providing a simple object interface for symmetrical and asymmetrical encryption, decryption, digital signing and message authentication. The Encryption class is able to generate secrets and keypairs, encrypt and decrypt data, sign and verify data, and generate and verify digital signatures. Encrypted messages are returned base64 encoded, while keys and secrets are returned as hexadecimal strings. The transformation of these to and from binary data makes use of the sodium_* timing-safe functions. All underlying cryptography is performed using the Sodium library. This library requires PHP 7.2 or higher with libsodium installed (this is bundled with PHP 7.2 or above, so you probably already have it).

            kandi-support Support

              php-encryption has a low active ecosystem.
              It has 0 star(s) with 0 fork(s). There are 1 watchers for this library.
              It had no major release in the last 12 months.
              php-encryption has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of php-encryption is 1.0.0

            kandi-Quality Quality

              php-encryption has no bugs reported.

            kandi-Security Security

              php-encryption has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            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.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of php-encryption
            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

            PHP Encryption,Usage,Asymmetric Encryption
            PHPdot img1Lines of Code : 42dot img1License : Permissive (MIT)
            copy iconCopy
                // Generate a new random keypair.
                $keypair = $crypt->generateEncryptionKeypair();
                // Or provide a password to generate a deterministic keypair.
                $keypair = $crypt->generateEncryptionKeypair("my_super_secret_password");
                // Or   
            PHP Encryption,Usage,Digital Signing
            PHPdot img2Lines of Code : 31dot img2License : Permissive (MIT)
            copy iconCopy
                // Generate a new random keypair.
                // Like generateEncryptionKeypair, you can also optionally provide a password to generate a deterministic keypair.
                $aliceSigningKeypair = $crypt->generateSigningKeypair();
                // Alice signs a mes  
            PHP Encryption,Usage,Message Authentication
            PHPdot img3Lines of Code : 30dot img3License : Permissive (MIT)
            copy iconCopy
                $message = "This is a message signed anonymously with a secret key.";
                // We can generate a secure, random 32 byte key, which is returned as a hexadecimal string.
                $secret = $crypt->generateSigningSecret();
                // Or, as long as the key   

            Community Discussions

            No Community Discussions are available at this moment for php-encryption.Refer to stack overflow page for discussions.

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


            No vulnerabilities reported

            Install php-encryption

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

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

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone dwgebler/php-encryption

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link