Java DES Encryption and Decryption with Key

Java DES Encryption Image

Java provide wide range of cryptography services under Java Cryptography Extension (JCE) package & third party Cryptography libraries, most famous is bouncy castle. DES Modes: ECB CBC PCBC CFB OFB CTR Padding Mechanism: PKCS5/PKCS7 ZeroBytePadding X932Padding ISO7816d4Padding See detailed bouncy castle & encryption specification available here. Bouncy Castle encryption specification Key Specification: ...

Read More »

Spring JAX-WS Client Setting Connection Timeout & Request Timeout from Properties

In last article, we covered that how we can use Spring framework based beans to manage WS client life cycle  & manage http connections underlying being used when we execute Web Services Client. Define bean like following Complete example to combine both Spring JAX-WS client with connection & request timeout ...

Read More »

Spring JAX-WS Client for Best Performance

Here’s are the changes you need to do to use Spring’s JaxWsPortProxyFactoryBean applicationContext.xml Where p:serviceInterface is point the Web service Interface. p:wsdlDocumentUrl is location of WSDL path or URL. p:namespaceUri is namespace mentioned in WSDL document. p:serviceName is Service location class which creates PORT class p:portName is the name of your ...

Read More »

Plain Java Load Performance Testing using JMeter

A Java Sampler is an easy way of creating a JMeter test by using native Java code. In fact there are several approaches that can be taken when creating a JMeter Sampler using Java code – they include:   pros: can specify JMeter script variables to class, cons: cannot have more ...

Read More »

Securing Spring Remoting by Spring Security

If you are exposing your some of services by Spring Remoting’s Http Invoker, most probably you come to the point where you wanted to have some authentication & authorization over your exposed services. Spring Security is the magic to this…….. Following are great two articles, by which you can easily ...

Read More »

Getting Started with Hardware Security Module with HSM Simulators

Hardware Security Module or HSM is intensively used by financial institution and bank which intend to communicate with other financial institution like VISA, MASTERCARD etc. Working with real HSM device is not only challenging but required most expensive budget since HSM devices are highly expensive. So, there are some good ...

Read More »

Rest Api Documentation Reblog

The holy grail for rest api is an auto-generated, always up-to-date, stylish documentation that promotes your site/product api. What are the tools available now ? Inspiring documentation Well documented less documented… but strangely easy to use. For Spring based application Working in a Java shop, I’m looking for a solution ...

Read More »

Nginx as Reverse Proxy, Load Balancing with Tomcat

Nginx has been known and quit popular for its simplest and fastest speed. Nginx has been used as reverse proxy and load balancing purpose. Using Nginx over apache httpd has number of advantages, we will discuss them later. So, starting with nginx with single tomcat instance is fairly simple In the example ...

Read More »

Android Generate QR Code Using Zxing

Generate  QR Code in your android project / activity easily, show them on screen or share with the sharing intent. Set Intents.Encode.SHOW_CONTENTS, false/true to show data or not. BarcodeFormat.QR_CODE Set type of Barcode / QR Code. Contents.Type.TEXT Set type of Bar/QR Code type. You need to add/register EncodeActivity activity in ...

Read More »