Archive For 26. October 2016

War Story: UTF-8 Content Disposition Header

By |

War Story: UTF-8 Content Disposition Header

Recently I had some problems with special filename characters during file upload with wildfly 8.2.0 application server. In my case the filename contained chinese letters and was encoded with the wrong encoding on application server side. ¬†After searching for a suitable solution I found an interesting thread on the jboss developer forum. It seems that…

Read more »

Freemarker: Transform lists

By |

Freemarker: Transform lists

The following are the key points described in this article: What is Freemarker? How does Freemarker works? How to transform Lists? What is Freemarker? Freemarker is a Java Template Engine, it replaces marker strings by dynamical content. The most common use case is generating html in web applications, but Freemarker is also used to generate…

Read more »

Some useful information about GPG

By |

Some useful information about GPG

OpenPGP is based on hybrid encryption, a random generated, symmetric key is encrypted with the recipient’s public key, usually RSA and that symmetric key is itself used to encrypt the message body with a symmetric encryption algorithm, often AES or AES-256. The hybrid symmetric encryption is used due to limitations of asymmetric methods (message size…

Read more »