Get encryption working with 0.5.1