Added the possibility to explicitly specify the used encryption algorithm