replace mcrypt_(open, init, generic, close) with encrypt/decrypt