hvvka / signed-classes

Tool for encrypting and decrypting *.class files with base64 from jars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

signed-classes

Enables encrypting and decrypting classes from selected jar with base64 encoding.

How to create a signed jar?

Create keys

$ keytool -genkey -alias hello -keyalg RSA -keysize 2048 -keystore hello-keystore -validity 660

Everything after alias is optional. Default keystore is .keystore file in home directory and default validity is 90 days.

The information for signing jar can be sent to stdout with:

$ keytool -genkey -alias hello -keystore hello-keystore < keystore.conf

Sign a jar

$ cd signed && gradle copyJarToDirectory && cd ../jar
$ jarsigner -keystore ~/hello-keystore -storepass hania123 -keypass hania123 signed-1.0-SNAPSHOT.jar hello 

Verify:

jarsigner -verify signed-1.0-SNAPSHOT.jar

-verbose option gives more info.

About

Tool for encrypting and decrypting *.class files with base64 from jars


Languages

Language:Java 100.0%