Skip to content

haku/cmstoad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

cmstoad

A quick and ugly utility for working with CMS encrypted files.

Build

mvn clean install assembly:single

Usage

 $ java -jar cmstoad.jar help

Generate a key pair called 'foobar' with keylength 2048.

 $ java -jar cmstoad.jar keygen -n foobar -s 2048

Encrypt files against multiple public keys.

 $ java -jar cmstoad.jar encrypt -u desu.public.pem -u foobar.public.pem file1.doc file2.png

Encrypt from stdin.

 $ java -jar cmstoad.jar encrypt -u desu.public.pem -- -

Decrypt files using private key. Private keys will be compared against names in CMS header until a match is found.

 $ java -jar cmstoad.jar decrypt -i foobar.private.pem file1.doc.cms file2.png.cms

Decrypt from stdin.

 $ java -jar cmstoad.jar decrypt -i foobar.private.pem -- -

Show header info for encrypted files.

 $ java -jar cmstoad.jar info file1.doc.cms file2.png.cms

Notes on Keys

The keys generated by cmstoad can be inspected using openssl:

 $ openssl rsa -noout -text -pubin -in desu.public.pem
 $ openssl rsa -noout -text -in desu.private.pem

About

A quick and ugly utility for working with CMS encrypted files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages