devxlogo

Tip Bank

Protecting Freed Memory

When you’re freeing memory, remember to set the memory contents to 0 so no other malicious program can read it after it’s been freed. //For example#define DATA_SIZEBOOL function(){ char pszData

Find Out What Cipher Suites Are Supported in JSSE

You can make the Java Secure Socket Extension list the supported cipher suites using the following code: SocketFactory SSLF=SSLSocketFactory.getDefault(); SSLsoclu=SSLF.createSocket(“12.110.20.211”,443); String[] cipher_suites=((SSLSocket)SSLsoclu).getSupportedCipherSuites(); for(int i=0;i