Update cipher.cpp