Posts about java

Java in Firefox after v52.0 (Checkpoint VPN)

08 March 2017

Firefox has changed a few things in its plugin infrastructure and that means Java will no longer work properly after version 52.0 (especially if you are using Checkpoint VPN to access work).

Fortunately one can always install older versions, present here:

https://ftp.mozilla.org/pub/firefox/releases

Also, be sure to disable automatic updates in the settings to prevent the browser from updating itself (default).


Bonus step (if you are on the mac configuring Checkpoint):

The newest OSX has a safety fea...

AES encryption in Ruby and Decryption in Java

24 February 2015
This one is precious, as it took me a long time to figure out. As a side-note, Java apparently only supports 128bit AES.

Here's the Ruby code:

def encrypt(string, pwd)
    salt = OpenSSL::Random.random_bytes(16)

    # prepare cipher for encryption
    e = OpenSSL::Cipher.new('AES-128-CBC')
    e.encrypt

    # next, generate a PKCS5-based string for your key + initialization vector
    key_iv = OpenSSL::PKCS5.pbkdf2_hmac_sha1(pwd, salt, 1024, e.key_len+e.iv_len)
    key = key_iv[0, e...

'OSX Mavericks "You need a Java 6 runtime to run X" error dialog fix'

24 January 2015

Ok, so here's the deal: If you upgrade to [OSX Mavericks](https://www.apple.com/osx/preview/), only had JAVA 7 installed, and try to run anything that requires JAVA you will probably get a nice dialog like this one:

All my attempts to make Mavericks use JAVA 7 instead have failed so i tried the next best thing: Install JAVA 6. Since you can't find JAVA 6 for Mac at the [Oracle](http://java.oracle.com) site, you'll have to install it from here: [Java for OS X 2013-004](http://support.apple....

Displaying posts 1 - 3 of 10 in total