Giter Club home page Giter Club logo

Comments (1)

brainfoolong avatar brainfoolong commented on June 21, 2024 1

Hi.

This is not a problem with this library. I can't help you. I do not provide code support for applications that i don't have written.

But, to give you some hints nonetheless:

  • cryptojs.encrypt is no default part of CryptoJS. First, original cryptojs variable called CryptoJS, not lowercase as in your code example. So it seems your old application have implemented a custom method to encrypt.
  • So also "AES" is not default of the global namespace. It's originally inside CryptoJS, like CryptoJS.AES. So another thing that seems to have a custom imlementation in your old project
  • You need to check what the old application really do with cryptojs.encrypt. What AES mode is used (aes-256-cbc or other).
  • Then use the exact same method in php (as you already have tried with the check function).
  • Verify what the out of JS is, then you must extract the correct parts in php
  • Usually a AES-256-CBC cipher has 3 parts. encryptedValue, salt and initialization vector. The last 2 are usually generated along with the encrypted text

You will find all this parts and how they work together in my library for PHP and JS.

That's all, i will not provide more support here.

Have a nice day.

from cryptojs-aes-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.