1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Added plSHA project, and clean up pnUtCrypt usage.

This commit is contained in:
Darryl Pogue
2012-02-11 22:31:29 -08:00
parent f4878166d5
commit d2243c459b
5 changed files with 100 additions and 28 deletions

View File

@ -39,26 +39,13 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
/*****************************************************************************
*
* $/Plasma20/Sources/Plasma/Apps/plMD5/Main.cpp
*
***/
#include "pnUtils/pnUtils.h"
#include "pnProduct/pnProduct.h"
#include "plEncryption/plChecksum.h"
#include <stdio.h>
/*****************************************************************************
*
* Exports
*
***/
//============================================================================
int CDECL main (int argc, char ** argv) {
int main (int argc, char ** argv) {
if (argc < 2) {
fprintf(stderr, "ERROR: Please specify filename.\n");
@ -70,7 +57,7 @@ int CDECL main (int argc, char ** argv) {
fprintf(stderr, "ERROR: MD5 failed.\n");
return 1;
}
fprintf(stdout, "%s\n", md5.GetAsHexString());
return 0;
}