Remove @author javadoc tag
This commit is contained in:
+1
-3
@@ -30,9 +30,7 @@ import java.nio.charset.StandardCharsets;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of the obfuscate command.
|
* Implementation of the de-obfuscate command.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
@Parameters(commandDescription = "De-obfuscate sensitive data")
|
@Parameters(commandDescription = "De-obfuscate sensitive data")
|
||||||
public class DeObfuscateCommand implements Runnable {
|
public class DeObfuscateCommand implements Runnable {
|
||||||
|
|||||||
@@ -24,15 +24,12 @@
|
|||||||
package rs.in.zivanovic.obfuscator;
|
package rs.in.zivanovic.obfuscator;
|
||||||
|
|
||||||
import com.beust.jcommander.JCommander;
|
import com.beust.jcommander.JCommander;
|
||||||
import com.beust.jcommander.ParameterException;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main entry point.
|
* Main entry point.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of the obfuscate command.
|
* Implementation of the obfuscate command.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
@Parameters(commandDescription = "Obfuscate sensitive data")
|
@Parameters(commandDescription = "Obfuscate sensitive data")
|
||||||
public class ObfuscateCommand implements Runnable {
|
public class ObfuscateCommand implements Runnable {
|
||||||
|
|||||||
+4
-6
@@ -33,8 +33,6 @@ import rs.in.zivanovic.obfuscator.impl.V1ObfuscatorImpl;
|
|||||||
*
|
*
|
||||||
* This method is useful for protecting potentially sensitive data from casual onlookers. It is NOT secure against
|
* This method is useful for protecting potentially sensitive data from casual onlookers. It is NOT secure against
|
||||||
* attackers with access to source code or live systems.
|
* attackers with access to source code or live systems.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
public final class JPasswordObfuscator {
|
public final class JPasswordObfuscator {
|
||||||
|
|
||||||
@@ -44,7 +42,7 @@ public final class JPasswordObfuscator {
|
|||||||
* Obfuscate data using supplied master key and current algorithm version.
|
* Obfuscate data using supplied master key and current algorithm version.
|
||||||
*
|
*
|
||||||
* @param masterKey master key to use for obfuscation
|
* @param masterKey master key to use for obfuscation
|
||||||
* @param data data to obfuscate
|
* @param data data to obfuscate
|
||||||
*
|
*
|
||||||
* @return string containing obfuscated data; use {@link #deObfuscate} to get secret data from this string
|
* @return string containing obfuscated data; use {@link #deObfuscate} to get secret data from this string
|
||||||
*/
|
*/
|
||||||
@@ -56,8 +54,8 @@ public final class JPasswordObfuscator {
|
|||||||
* Obfuscate data using supplied master key and algorithm version.
|
* Obfuscate data using supplied master key and algorithm version.
|
||||||
*
|
*
|
||||||
* @param masterKey master key to use for obfuscation
|
* @param masterKey master key to use for obfuscation
|
||||||
* @param data data to obfuscate
|
* @param data data to obfuscate
|
||||||
* @param version obfuscation algorithm version to use
|
* @param version obfuscation algorithm version to use
|
||||||
*
|
*
|
||||||
* @return string containing obfuscated data; use {@link #deObfuscate} to get secret data from this string
|
* @return string containing obfuscated data; use {@link #deObfuscate} to get secret data from this string
|
||||||
*/
|
*/
|
||||||
@@ -75,7 +73,7 @@ public final class JPasswordObfuscator {
|
|||||||
/**
|
/**
|
||||||
* De-obfuscate string generated with {@link #obfuscate} method.
|
* De-obfuscate string generated with {@link #obfuscate} method.
|
||||||
*
|
*
|
||||||
* @param masterKey master key to use for de-obfuscation; must match the key used for obfuscation
|
* @param masterKey master key to use for de-obfuscation; must match the key used for obfuscation
|
||||||
* @param obfuscatedString obfuscated string generated using one of {@link #obfuscate} methods
|
* @param obfuscatedString obfuscated string generated using one of {@link #obfuscate} methods
|
||||||
*
|
*
|
||||||
* @return original, de-obfuscated data
|
* @return original, de-obfuscated data
|
||||||
|
|||||||
-2
@@ -27,8 +27,6 @@ import org.bouncycastle.util.encoders.Base64;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Container for obfuscated data.
|
* Container for obfuscated data.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
public class ObfuscatedData {
|
public class ObfuscatedData {
|
||||||
|
|
||||||
|
|||||||
+2
-4
@@ -25,8 +25,6 @@ package rs.in.zivanovic.obfuscator.impl;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Obfuscator/de-obfuscator interface.
|
* Obfuscator/de-obfuscator interface.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
public interface Obfuscator {
|
public interface Obfuscator {
|
||||||
|
|
||||||
@@ -34,7 +32,7 @@ public interface Obfuscator {
|
|||||||
* Obfuscate sensitive data using supplied master key.
|
* Obfuscate sensitive data using supplied master key.
|
||||||
*
|
*
|
||||||
* @param masterKey master key to use for data obfuscation
|
* @param masterKey master key to use for data obfuscation
|
||||||
* @param data sensitive data to obfuscate
|
* @param data sensitive data to obfuscate
|
||||||
*
|
*
|
||||||
* @return obfuscated string
|
* @return obfuscated string
|
||||||
*/
|
*/
|
||||||
@@ -44,7 +42,7 @@ public interface Obfuscator {
|
|||||||
* De-obfuscate data using supplied master key.
|
* De-obfuscate data using supplied master key.
|
||||||
*
|
*
|
||||||
* @param masterKey master key to use for data de-obfuscation; must match master key used for obfuscation
|
* @param masterKey master key to use for data de-obfuscation; must match master key used for obfuscation
|
||||||
* @param data string obfuscated with {@link #obfuscate} to de-obfuscate
|
* @param data string obfuscated with {@link #obfuscate} to de-obfuscate
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
-2
@@ -31,8 +31,6 @@ import javax.crypto.spec.PBEKeySpec;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Password Based Encryption (PBE) based obfuscator. Use as a base class for further specializations.
|
* Password Based Encryption (PBE) based obfuscator. Use as a base class for further specializations.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
public class PBEObfuscatorImpl implements Obfuscator {
|
public class PBEObfuscatorImpl implements Obfuscator {
|
||||||
|
|
||||||
|
|||||||
-2
@@ -29,8 +29,6 @@ import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
|||||||
/**
|
/**
|
||||||
* PBE-based obfuscator using <em>PBEWithSHA256And128BitAES</em> algorithm with 16,000 rounds, 8 bytes of randomly
|
* PBE-based obfuscator using <em>PBEWithSHA256And128BitAES</em> algorithm with 16,000 rounds, 8 bytes of randomly
|
||||||
* generated salt and BouncyCastle as crypto provider.
|
* generated salt and BouncyCastle as crypto provider.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
public class V1ObfuscatorImpl extends PBEObfuscatorImpl {
|
public class V1ObfuscatorImpl extends PBEObfuscatorImpl {
|
||||||
|
|
||||||
|
|||||||
-2
@@ -30,8 +30,6 @@ import org.junit.Test;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Obfuscator unit tests.
|
* Obfuscator unit tests.
|
||||||
*
|
|
||||||
* @author Marko Zivanovic <marko@zivanovic.in.rs>
|
|
||||||
*/
|
*/
|
||||||
public class JPasswordObfuscatorTest {
|
public class JPasswordObfuscatorTest {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user