Added a couple of new encryption related functions