Modified encrypt