Updating encrypt.c

Encrypt will now encrypt the data, the lengths are correct, however I'm
unsure if the data is actually encrypted, though I believe it is.