Home >  Support >  Online Manual >  How to use AEP PRO >  Command Line Interface >  Commands >  "CHECKPUBKEYRSA" - check public key file against the encrypted file

"CHECKPUBKEYRSA" - check public key file against the encrypted file

This command is used to check whether the specified public key file was used for encrypted file or not.

Use -addkeyhash switch to add hash information using command encryptrsa.

Syntax

CHECKPUBKEYRSA="c:\pathto\publickeyfile.aepkey" c:\path2\encryptedfile.aep

or

CHECKPUBKEYRSA="c:\pathto\publickeyfile.aepkey" c:\path2\*.aep

Compatible switches

-RECURSE

-EXCLUDE

This command generates the report looking like

CHECKPUBKEYRSA="C:\aepkeys\test_2048bit_public.aepkey" "C:\temp\fakedisk\Accounting\*.*"

Checking RSA Key

The Legend:

[YES] - yes, this public key file was used for file encryption

[NO] - no, another public key file was used for encryption

[NOHASH] - this file has no hash information about public key

[ERR] - other error

Processing encrypted file(s)...

C:\temp\fakedisk\Accounting\Affiliated Company.doc.aep .... [NOHASH]

C:\temp\fakedisk\Accounting\Lower of Cost or Market.xls.aep .... [YES]

Errorlevels

It is possible to analyze the returned code in your batch script in case when you specified single encrypted file as the program argument, i.e. not the file mask. In this case aepcmd returns errorlevels:

0 - it is the public key file was used for encryption of this file. This code is also retured, when you specified single file, but it does not exist.

6 - this encrypted file has no hash information about used public key file (-addkeyhash switch was not used together with encryptrsa command).

7 - the specified public key file is not valid for this encrypted file. I.e. another public key file was used for encryption

other code - error

Back to the Table of Contents

 
Looking for best File Encryption Software?

Are you looking for strong file encryption software, with tons of features, easy to use, constantly improved?


Advanced Encryption Package 2017- is the software you are looking for. Just try it!

Read More

Read more about all program features.

ScreenShots

Look How to use file encryption software (in screenshots).

Free Download

Download evaluation version and try it free for 30 days!

 
Christmas and New Year Savings!

Christmas and New Year Savings!

Get 25% discount on AEP PRO until January 10, 2013.

 
Complete protection offer

Self Defence Package

3 product bundle (CD Encryption + USB Encryption + File Encryption + Drive Encryption) at a special price

 
Newsletter

Subscribe to our Newsletter.

Get notified about new products releases, new significant updates of existing products. Be first to know about short season's discounts and special offers.

 
Reviews

Great tool to help make things just a little easier

Advanced Encryption Package Professional is a tool that can ease some of the pain of working with encrypted messages and files.


 
Spotlight