This project is read-only.
Project Description
CryptonCmd is simple toolset for basic cryptographic operations. It developed using C# 4.0 and VS2010. CryptonCmd includes command line utilites for encrypting, decrypting, digital signing, sign verification and cryptographic keys generation. Both symmetric and asymmetric cryptographic algorithms are supported. Independent from PKI.

UTILITES:

GenKey is command line application for cryptographic key generation. For symmetric cryptographic algorithms (like Rijndael,DES,3DES,RC2), GenKey creates single key file having .symkey extension. This file contains generated IV and KEY information. For asymmetric cryptographic algorithms (like RSA and DSA), GenKey creates two files with extensions .pubkey and .prikey. First file contains public key information (used for file encryption before sending to recipient), second - primary key information (used for decryption on recipient's side). GenKey doesn't uses neither X509 certificates nor PKI infrastructure, and stores all asymmetric key information in the above files.
genkey.gif

Encrypt is command line application for file encryption. Before encrypt files you should have key file(s). Case of symmetric algorithms you need .symkey file . If you use asymmetric algorithm (like RSA) then you should have recipient's .pubkey file (public part of asymmetric key). Both .symkey and .pubkey files can be generated by GenKey utilite.
encrypt.gif

Decrypt is command line application for file decryption. Before decrypt files you should have key file(s). Case of symmetric algorithms you need the same .symkey file as used for encryption. If you use asymmetric algorithm (like RSA) then you should have recipient's .prikey file (secret part of asymmetric key). Both .symkey and .prikey files can be generated by GenKey utilite.
decrypt.gif

SignFiles is command line application for digital signing. For each source file (source files mask pass in -s argument), SignFiles creates digital sign file with name as a source one and extension .sign. This file contains both digital sign data (encrypted hash) and sign details (user name, computer name, sign date and time, source file name, key name). Encrypted hash evaluates for (source file data) + (sign details data). Private key file name (having .prikey extension) pass using -k argument. You have to use only asymmetric algorithms keys for digital signing.
signfiles.gif

VerifySigns is command line application for digital sign verification. For each source file (source files mask pass in -s argument), VerifySigns looks for attached sign file in source file's directory. If sign file is found then VerifySigns opens it and compares sign data with one evaluated on actual information. For decrypt sign data VerifySigns needs sender's .pubkey file. By default senders .pubkey files have to resides in the same directory with VerifySigns.exe (you can define different .pubkey storage directory using -p argument). If sign is valid then VerifySigns returns 0 else 1.
VerifySigns.gif

Last edited May 16, 2011 at 1:54 PM by bpost, version 25