Skip to content

Import Windows certificates to Java

I have a java server that is trying to connect to an external Ldap server through SSL (as a client in order to perform queries). I’m having trouble connecting since the certificate they send me upon connecting is trusted only in my local windows Truststore but is not present in java truststore (cacerts)…

Java encryption with sha256 and salt

I need a little help from you, I have an exercise , to do a login program and to store the password with sha-256 and salt, I made a part, but here it’s the hard part. I’ve read that if you use sha-256 that you can’t reverse the operation to determine the password. If it’s true then wha…

How does the recursion of printNStars work?

I don’t understand the output of this recursion. Can someone please help me? (flowchart will definitely help me understand..) Output of the code above: Answer It works in the following way: which can be translated into: there is also an exit rule. If n is 1, don’t draw previous rows. Just print on…

How to connect to java server (socket) using internet

I’d read a tutorial from here. It is chat application made using java for server side and client as well and android as client. Its running good without any error just need to connect on ip address of server but my question is, can i use it over internet as well as over wifi? if yes then how? Answer Jus…