0.3.0 • Published 6 years ago

generator-jhipster-obfuscation-at-rest v0.3.0

Weekly downloads
6
License
Apache-2.0
Repository
github
Last release
6 years ago

generator-jhipster-obfuscation-at-rest

NPM version Build Status Dependency Status

JHipster module, JHipster module for creating data obfuscation at rest with JPA support

Introduction

This is a JHipster module, that is meant to be used in a JHipster application.

If you need to obfuscate the data before to store it then you are looking for this jhipster module!

When secret or sensitive data are stored on a database in clear text unauthorized people can potentially look at them and use this information inappropriately. You can obfuscate the fields of your entity using this jhipster module

This field obfuscation is applicable only with JPA as persistence layer

PAY ATTENTION The used algorithms are very simple, if you want to improve the security you could re-implements the converters

Prerequisites

As this is a JHipster module, we expect you have JHipster and its related tools already installed:

Installation

With Yarn

To install this module:

yarn global add generator-jhipster-obfuscation-at-rest

To update this module:

yarn global upgrade generator-jhipster-obfuscation-at-rest

With NPM

To install this module:

npm install -g generator-jhipster-obfuscation-at-rest

To update this module:

npm update -g generator-jhipster-obfuscation-at-rest

Usage

To run the module on a JHipster generated application:

yo jhipster-obfuscation-at-rest

The module will prompting about obfuscation during the JHipster generation entity

jhipster entity YourEntity

After, the entity generation will start the post run module hooks. Suppose that YourEntity will have two String fields name and code:

Running post run module hooks

Running JHipster obfuscation-at-rest Generator! v0.3.0
        Supported types ["String", "LocalDate", "Integer"]

? Do you want to enable the obfuscation for this entity(EntityExample)? Yes
? Which fields do you want to obfuscate?
 ( ) Name
>(*) Code

You can select all the fields (if is supported type) to apply the obfuscation.

License

Apache-2.0 ©