Skip to content
Advertisement

Tag: java

PHP to serve download for a Java application

I am wondering how to make a download server more robust. For now, I have a server, on https, storing zip files, named with a random hash, indexed by my database. The directory containing does not permit listing (htaccess) to avoid manual download directly browsing the directory on the server. The Java app displays the description of the files, and

RSA Encryption in Java / Decryption in PHP Fails

I have a PHP script that I have been using do decrypt a session key that I encrypted from iOS. The encryption is done on the client using a 1024-bit public key. Decryption on the server side is done with the corresponding private key. Now I’m trying to write an encryption method for Android. Unfortunately, the decryption continues to fail,

Making first letter capital using regex like in ucwords

I need to convert a String value in to Upper case (First letter to upper in every word). This can be done in php by using ucwords() method. Ex : Thanks with hi5 Answer Undermentioned will work great in all your situation How to use :: Try defining this code n your super class ( Best code practice ) Now

How can i secure this API in an APK file

I am currently developing an api for a website i run. The api will be used in a number of places, and one of those places is an Android app. It’s purpose is to allow users to login, and and download files. I have the api build, and it will be using HTTPS so all of the data is fine

Does PHP allow *.properties file as in Java?

Is there a way to use a *.properties file in PHP as you do in Java? I’d like to store some application-level constants in a properties or XML file and easily call them from throughout my code. Your …

SSL Connection Reset

I am attempting to connect to an HTTPS endpoint in Java. Every method I have tried (more details below) ends up generating this stack trace: I have tried: Connecting with the javax SOAP libs and a new URL(“https://…”) Connecting with new URL(“https://…”).openConnection() Creating an SSL connection by hand: A few more details: Every method I have tried has worked against

Advertisement