doing generic decrypt