Giter Club home page Giter Club logo

Comments (10)

brainfoolong avatar brainfoolong commented on July 20, 2024

This ain't helpful, what exactly is the problem? Any errors? Please provide more information.
Have you tried the example files?

from cryptojs-aes-php.

paul-piro avatar paul-piro commented on July 20, 2024

i installed the examples but js-to-php when you submit the data php cannot decrypt it

from cryptojs-aes-php.

brainfoolong avatar brainfoolong commented on July 20, 2024

Yes, but have you any errors, have you viewed the source code after you've submitted the example? The most people with such a problem don't have openssl support installed and than you have a error like undefined function in the page source code after submitting the form.

from cryptojs-aes-php.

paul-piro avatar paul-piro commented on July 20, 2024

Yes i have them all installed and i checked for errors it seems that one
param is send witn ' "...." ' and php cannot decode it

On Fri, Jul 24, 2015 at 9:44 PM, Roland Eigelsreiter <
[email protected]> wrote:

Yes, but have you any errors, have you viewed the source code after you've
submitted the example? The most people with such a problem don't have
openssl support installed and than you have a error like undefined
function in the page source code after submitting the form.


Reply to this email directly or view it on GitHub
#4 (comment)
.

from cryptojs-aes-php.

brainfoolong avatar brainfoolong commented on July 20, 2024

There should be any error on the page, maybe hidden in the source code but when it did not work there really must be some error. I've tested it right now with PHP 5.4+ and PHP 7 and it work fine for both.

from cryptojs-aes-php.

paul-piro avatar paul-piro commented on July 20, 2024

i unzipped the lib here, take a look in the exaples js-to-php see when you
submit it will not decode it, server is using php 5.4 and all the
dependencies are installed

http://microstockr.com/1/

On Fri, Jul 24, 2015 at 9:55 PM, Roland Eigelsreiter <
[email protected]> wrote:

There should be any error on the page, maybe hidden in the source code but
when it did not work there really must be some error. I've tested it right
now with PHP 5.4+ and PHP 7 and it work fine for both.


Reply to this email directly or view it on GitHub
#4 (comment)
.

from cryptojs-aes-php.

brainfoolong avatar brainfoolong commented on July 20, 2024

Ok i've tested it, there is an error after submitted the form, you see it when you show the source code of the page.
Call to undefined function hex2bin() in <b>/home/piromanu/www/microstockr.com/1/cryptojs-aes.php</b> on line <b>19</b><br />
That seems that you don't have PHP 5.4 or higher because the function hex2bin is only available in PHP 5.4 and later.
http://php.net/manual/en/function.hex2bin.php

from cryptojs-aes-php.

paul-piro avatar paul-piro commented on July 20, 2024

oh that means Dreamhost doesn't have hex2bin

Thank you very much i think you can close it

PS: you should put these 2 functions in the scripts for future use and use
those instead of native php

function hex2str($hex) {
    return pack("H*", $hex);
}

function str2hex($str) {
    return array_shift(unpack('H*', $str));
}

On Fri, Jul 24, 2015 at 10:02 PM, Roland Eigelsreiter <
[email protected]> wrote:

Ok i've tested it, there is an error after submitted the form, you see it
when you show the source code of the page.
Call to undefined function hex2bin() in /home/piromanu/www/
microstockr.com/1/cryptojs-aes.php
on line 19

That seems that you don't have PHP 5.4 or higher because the function
hex2bin is only available in PHP 5.4 and later.
http://php.net/manual/en/function.hex2bin.php


Reply to this email directly or view it on GitHub
#4 (comment)
.

from cryptojs-aes-php.

brainfoolong avatar brainfoolong commented on July 20, 2024

Ok thx. Anyway, i prefer to depend on native php functions, it's weird that such a simple function is disabled on your host and the whole openssl stuff isn't :)

from cryptojs-aes-php.

paul-piro avatar paul-piro commented on July 20, 2024

:)) yeah there are other functions disabled too like getallheaders()

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.