elocryptfive | Automatically encrypt and decrypt Laravel 5 Eloquent values | Encryption library

 by   delatbabel PHP Version: v1.5.6 License: MIT

kandi X-RAY | elocryptfive Summary

kandi X-RAY | elocryptfive Summary

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

Encrypted values are usually longer than plain text values. Sometimes much longer. You may find that the column widths in your database tables need to be extended to store the encrypted values. If you are encrypting long strings such as JSON blobs then the encrypted values may be longer than a VARCHAR field can support, and you may need to extend your column types to TEXT or LONGTEXT.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              elocryptfive has a low active ecosystem.
              It has 82 star(s) with 26 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 12 have been closed. On average issues are closed in 5 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of elocryptfive is v1.5.6

            kandi-Quality Quality

              elocryptfive has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              elocryptfive 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

              elocryptfive releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              elocryptfive saves you 124 person hours of effort in developing the same functionality from scratch.
              It has 313 lines of code, 34 functions and 8 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed elocryptfive and discovered the below as its top functions. This is intended to give you an instant insight into elocryptfive implemented functionality, and help decide if they suit your requirements.
            • Execute the command
            • Decrypt attribute .
            • Encrypt an attribute .
            • Decrypt attributes .
            • Setup the keys .
            • Determine if the given key should be encrypted .
            • Bootstrap config .
            • Decrypt attribute .
            • Check if value is encrypted
            • Register plugin .
            Get all kandi verified functions for this library.

            elocryptfive Key Features

            No Key Features are available at this moment for elocryptfive.

            elocryptfive Examples and Code Snippets

            No Code Snippets are available at this moment for elocryptfive.

            Community Discussions

            QUESTION

            Send reset link with Laravel Auth and encrypted user table
            Asked 2018-May-19 at 01:20

            I have a laravel 5.4 installation and I always used the default Laravel Authentication guard to handle user authentication and, mainly, the password restore process.

            Now I had to encrypt the email in the users table using the Elocryptfive library, so I also added email_hash field where the hash of the mail is stored in the db in order to easily retrieve users by their email.

            I can easily authenticate users using the hash:

            ...

            ANSWER

            Answered 2018-May-17 at 13:39

            I found a way to achieve this. I will answer my own question to provide a useful solution if someone else needs some help on the topic:

            In your ForgotPasswordController.php, override the sendResetLinkEmail function:

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

            QUESTION

            Data encryption stoppped working in Eloquent model after upgrading to Laravel 5.5
            Asked 2017-Sep-20 at 10:00

            I'm using elocryptfive for encrypting some fields in database - in a nutshell it's a PHP trait that encrypts attributes marked as encryptable before they are written into database and decrypts them when showing them to user (with getAttribute and other such methods).

            Simpler version of it can be found in this laracasts discussion.

            There weren't any problems when using Laravel versions earlier than 5.5. After upgrading the site to laravel 5.5 I've noticed that values that were supposed to be encrypted, were instead presented in plaintext.

            I've filed issue in package github account, asking for help. In the meantime I've tried few things:

            1. added elocryptfive package in freshly installed laravel 5.2 and 5.4 - encryption worked correctly
            2. did the same in stock laravel 5.5 - the values were encrypted only after first save, and stored decrypted after every subsequent update
            3. I haven't found anything related in forums/laracasts yet

            It seems that it could be related to some changes between 5.4 and 5.5, I've already tried comparing few classes in Eloquent namespace but gave up.

            ...

            ANSWER

            Answered 2017-Sep-20 at 10:00

            After comparing once again the changes between 5.4 and 5.5 tags in laravel/framework package I found out the reason in getDirty method of src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php trait.

            In laravel 5.4 there was:

            foreach ($this->attributes as ...

            then in 5.5 it was changed to:

            foreach ($this->getAttributes() as ...

            As getAttributes method is one of those which decrypt data, it looks that for now the most sensible solution will be to override getDirty() either in encrypting trait or in application models using it.

            The modified method would look like this:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install elocryptfive

            This package can be installed via Composer by adding the following to your composer.json file:.

            Support

            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
            CLONE
          • HTTPS

            https://github.com/delatbabel/elocryptfive.git

          • CLI

            gh repo clone delatbabel/elocryptfive

          • sshUrl

            git@github.com:delatbabel/elocryptfive.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

            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 delatbabel

            apisecurity

            by delatbabelPHP

            viewpages

            by delatbabelPHP

            redmine-migrator

            by delatbabelPHP

            contacts

            by delatbabelHTML

            applog

            by delatbabelPHP