예제 #1
0
void decryptWhatsappDatabase7(const std::string &filename, const std::string &filenameDecrypted, const std::string &keyFilename)
{
	unsigned char key[32];
	unsigned char iv[16];

	extractKey(keyFilename, key, iv);
	decryptWhatsappDatabase7(filename, filenameDecrypted, key, iv);
}
예제 #2
0
void decrypt7(const std::vector<std::string *> arguments)
{
	if (arguments.size() != 5)
	{
		displayUsage();
		return;
	}

	std::string &databaseFilename = *arguments[2];
	std::string &keyFilename = *arguments[3];
	std::string &outputFilename = *arguments[4];
	decryptWhatsappDatabase7(databaseFilename, outputFilename, keyFilename);
}