finished implementing ecnryption utils