com.arextest.desensitization.extension.DataDesensitization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arex-desensitization-extension Show documentation
Show all versions of arex-desensitization-extension Show documentation
Arex-desensitization-extension is a Java library that defines the extended interface of
desensitization.
The newest version!
package com.arextest.desensitization.extension;
/**
* The extension interface is to encrypt the infos in DataBase and pageshow.
* To avoid the following behaviors:
* 1. change the using encryption method, which will cause the previous data can not be decrypted
*/
public interface DataDesensitization {
/**
* To encrypt the contents of the database
* Note: The encryption method must be reversible encryption for playback
*
* @param info the contents of the database
* @return the encrypted contents
*/
String encrypt(String info) throws Exception;
/**
* To decrypt the contents of the database
* Note: The decrypted information is for playback and only circulates inside arex
* if the information is not decrypted, it will cause the error of the replay
*
* @param encryptInfo the encrypted contents
* @return the decrypted contents
*/
String decrypt(String encryptInfo) throws Exception;
}