Skip to content

Tag: php

Android Studio php connection

I’m trying to get information from db using php in android studio java. The php code works 100%. The problems is that when I open the app from the Android emulator the app closes itself almost instantly. This is the error message I get in run Logcat is empty The Build is also error-less From what I see …

PHP Bcrypt Salt as of 7.0

I am working on an application in which I have to compare 2 hashed passwords in a database, one password is being generated in PHP with $Password = password_hash($RawPassword, PASSWORD_BCRYPT); While the other password that is being sent to the database to compare with the PHP hashed password is generated in …

Decrypt using AES-256-ECB in Java

I have encrypted the string in PHP using AES-256-ECB. I would like to decrypt the same using Java/Scala? I am seeing the following error? how can we decrypt the same using Java? Note: (decryption in PHP is working as expected) but I want to do this in Java Answer The key has to be exactly 256 bit long. Clearl…

Conversion table HTML/PHP/Java

I need to make a conversion table that essentially says if variable 1 is in this range and variable 2 is in this range then variable 3 = x. I’ve done this in PHP and it works, however for my current project PHP won’t work. Is there another straight forward way to accomplish this via Java or someth…

how to decode Java stream in PHP

I requested Walmart report API and the result would be returned zip file stream.Refer to the API documents,it gives an example to realize it with Java code as the following below: However,if I use php like: It would download zip file but the file data is corrupt.It maybe such a reason like the byte stream is …