Update encrypt.cpp