Skip to content
Advertisement

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 there is

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 Java with String hashedPassword = BCrypt.hashpw(password); As of PHP

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. Clearly the

Rebuild of a RSA Private Key from modulus & exponent fails

I’m trying to rebuild a RSA keypair from modulus & private/public exponents. The conversion works correct for the public key but fails to private key when comparing the encoded private keys. When using this rebuild private/public keypair for encryption it works (!) in Java, but when using the rebuild keypair in PHP, the decryption part fails (encryption is working), so

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 something? If anyone

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 transfered by using Java

Advertisement