com.github.agogs:securekey-maven-plugin

This plugin is used to generate a AES key using sun.security.ssl.SecureKey which is then Base64 encoded during build time and store it in the file system. The "secret" to generate the key is passed as a parameter in the plugin configuration

License

License

Categories

Categories

Maven Build Tools KeY Data Data Formats Formal Verification
GroupId

GroupId

com.github.agogs
ArtifactId

ArtifactId

securekey-maven-plugin
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

com.github.agogs:securekey-maven-plugin
This plugin is used to generate a AES key using sun.security.ssl.SecureKey which is then Base64 encoded during build time and store it in the file system. The "secret" to generate the key is passed as a parameter in the plugin configuration
Project URL

Project URL

https://github.com/agogs/securekey-maven-plugin
Source Code Management

Source Code Management

https://github.com/agogs/securekey-maven-plugin

Download securekey-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.agogs</groupId>
    <artifactId>securekey-maven-plugin</artifactId>
    <version>1.0.2</version>
</plugin>

Dependencies

compile (1)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

securekey-maven-plugin

This plugin is used to generate a AES key using javax.crypto.SecretKey which is then Base64 encoded during build time and store it in the file system. The "secret" to generate the key is passed as a parameter in the plugin configuration

JDk8 Build Status

This plugin is available on maven central

Apache Maven

<plugins>
    .
    .
    .
    <plugin>
        <groupId>com.github.agogs</groupId>
        <artifactId>securekey-maven-plugin</artifactId>
        <executions>
            <execution>
                <configuration>
                    <keySize>256</keySize>                      <!-- optional, default is 128 bits-->
                    <algorithm>AES</algorithm>
                    <secret>secret</secret>                     <!-- optional, default = random string -->
                    <fileName>key.properties</fileName>         <!-- optional, default = securekey.properties -->
                    <filePath>/path/to/file</filePath>          <!-- optional, default is project root-->
                    <propertyName>property.name</propertyName>  <!-- optional, default = secure.key.encoded -->
                </configuration>
            </execution>
        </executions>
    </plugin>
    .
    .
    .
</plugins>

Versions

Version
1.0.2