JCE on Mac OS X

Reading time ~1 minute

I had to install JCE with unlimited strength policy on my MacBook. Usual way: go to Oracle pages and download JCE manually. Luckily I’m using brew cask.

$ brew cask install jce-unlimited-strength-policy
==> Caveats
Installing this Cask means you have AGREED to the Oracle Binary Code License Agreement for Java SE at
  http://www.oracle.com/technetwork/java/javase/terms/license/index.html

==> Downloading http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip
######################################################################## 100.0%
==> Verifying checksum for Cask jce-unlimited-strength-policy
Password:
🍺  jce-unlimited-strength-policy staged at '/opt/homebrew-cask/Caskroom/jce-unlimited-strength-policy/1.8' (3 files, 16K)

And quick test it’s installed

scala> javax.crypto.Cipher.getMaxAllowedKeyLength("AES")
res0: Int = 2147483647

If JCE unlimited strength policy is not installed, then returned value is 128.

SLF4J and logging throwables

I've been living in the darkness about not documented feature of[SLF4J](http://www.slf4j.org/) when[Throwable](https://docs.oracle.com/ja...… Continue reading

Unit testing equals and hashCode methods

Published on May 24, 2016

Usefull Vim links

Published on May 08, 2016