Skip to content

Commit

Permalink
Merge remote-tracking branch 'lfcnassif/#2371_RenameCrypto'
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Dec 30, 2024
2 parents 9919563 + 274c3fb commit 678d90d
Show file tree
Hide file tree
Showing 21 changed files with 68 additions and 54 deletions.
32 changes: 16 additions & 16 deletions iped-app/resources/config/conf/RegexConfig.txt

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions iped-app/resources/config/conf/metadataTypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1662,9 +1662,9 @@ Regex:BR_CPF = java.lang.String
Regex:BR_PISPASEP = java.lang.String
Regex:BR_TITULO_ELEITOR = java.lang.String
Regex:CREDIT_CARD = java.lang.String
Regex:CRIPTOCOIN_BITCOIN_ADDRESS = java.lang.String
Regex:CRIPTOCOIN_MONERO = java.lang.String
Regex:CRIPTO_POSSIBLE_SEED_PHRASE_EN = java.lang.String
Regex:CRYPTOCOIN_BITCOIN_ADDRESS = java.lang.String
Regex:CRYPTOCOIN_MONERO = java.lang.String
Regex:CRYPTO_POSSIBLE_SEED_PHRASE_EN = java.lang.String
Regex:EMAIL = java.lang.String
Regex:IP = java.lang.String
Regex:MAC_ADDRESS = java.lang.String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @returns String array with at least one regex name to be validated
*/
function getRegexNames() {
return ["CRIPTO_POSSIBLE_SEED_PHRASE_EN","CRIPTO_POSSIBLE_SEED_PHRASE_PT"];
return ["CRYPTO_POSSIBLE_SEED_PHRASE_EN","CRYPTO_POSSIBLE_SEED_PHRASE_PT"];
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.IOException;
import java.nio.ByteBuffer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.File;
import java.util.Arrays;
Expand Down Expand Up @@ -34,7 +34,7 @@ public void init(File confDir) {

@Override
public List<String> getRegexNames() {
return Arrays.asList("CRIPTOCOIN_BITCOIN_CASH_CASHADDR");
return Arrays.asList("CRYPTOCOIN_BITCOIN_CASH_CASHADDR");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.IOException;
import java.security.MessageDigest;
Expand All @@ -7,7 +7,7 @@

/**
* Utility class for validation of Base58Checked values used in various
* criptocurrencies
* cryptocurrencies
*
* @author Fabio Melo Pfeifer <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

public class Bech32AddressValidator {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.File;
import java.util.Arrays;
Expand Down Expand Up @@ -39,9 +39,9 @@ public void init(File confDir) {

@Override
public List<String> getRegexNames() {
return Arrays.asList("CRIPTOCOIN_BITCOIN_ADDRESS", "CRIPTOCOIN_BITCOIN_BIP38_ENC_PRIV_K",
"CRIPTOCOIN_BITCOIN_WIF_PRIV_K_UNC_PUB_K", "CRIPTOCOIN_BITCOIN_WIF_PRIV_K_COMP_PUB_K",
"CRIPTOCOIN_BITCOIN_BIP32_HD_XPRV_KEY", "CRIPTOCOIN_BITCOIN_BIP32_HD_XPUB_KEY");
return Arrays.asList("CRYPTOCOIN_BITCOIN_ADDRESS", "CRYPTOCOIN_BITCOIN_BIP38_ENC_PRIV_K",
"CRYPTOCOIN_BITCOIN_WIF_PRIV_K_UNC_PUB_K", "CRYPTOCOIN_BITCOIN_WIF_PRIV_K_COMP_PUB_K",
"CRYPTOCOIN_BITCOIN_BIP32_HD_XPRV_KEY", "CRYPTOCOIN_BITCOIN_BIP32_HD_XPUB_KEY");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.File;
import java.util.Arrays;
Expand All @@ -23,7 +23,7 @@ public void init(File confDir) {

@Override
public List<String> getRegexNames() {
return Arrays.asList("CRIPTOCOIN_DASH");
return Arrays.asList("CRYPTOCOIN_DASH");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.File;
import java.util.Arrays;
Expand All @@ -24,7 +24,7 @@ public void init(File confDir) {

@Override
public List<String> getRegexNames() {
return Arrays.asList("CRIPTOCOIN_DOGECOIN");
return Arrays.asList("CRYPTOCOIN_DOGECOIN");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.File;
import java.security.MessageDigest;
Expand Down Expand Up @@ -32,7 +32,7 @@ public void init(File confDir) {

@Override
public List<String> getRegexNames() {
return Arrays.asList("CRIPTOCOIN_ETHEREUM");
return Arrays.asList("CRYPTOCOIN_ETHEREUM");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.File;
import java.util.Arrays;
Expand Down Expand Up @@ -35,7 +35,7 @@ public void init(File confDir) {

@Override
public List<String> getRegexNames() {
return Arrays.asList("CRIPTOCOIN_LITECOIN");
return Arrays.asList("CRYPTOCOIN_LITECOIN");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import java.io.File;
import java.util.Arrays;
Expand All @@ -17,7 +17,7 @@ public void init(File confDir) {

@Override
public List<String> getRegexNames() {
return Arrays.asList("CRIPTOCOIN_RIPPLE");
return Arrays.asList("CRYPTOCOIN_RIPPLE");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ iped.engine.task.regex.validator.BoletoRegexValidatorService
iped.engine.task.regex.validator.TituloEleitorRegexValidatorService
iped.engine.task.regex.validator.CreditCardRegexValidatorService
iped.engine.task.regex.validator.ScriptValidatorService
iped.engine.task.regex.validator.cripto.BitcoinAddressValidatorService
iped.engine.task.regex.validator.cripto.BCHAddressValidatorService
iped.engine.task.regex.validator.cripto.EthereumAddressValidatorService
iped.engine.task.regex.validator.cripto.RippleAddressValidatorService
iped.engine.task.regex.validator.crypto.BitcoinAddressValidatorService
iped.engine.task.regex.validator.crypto.BCHAddressValidatorService
iped.engine.task.regex.validator.crypto.EthereumAddressValidatorService
iped.engine.task.regex.validator.crypto.RippleAddressValidatorService
iped.engine.task.regex.validator.PhoneRegexValidatorService
iped.engine.task.regex.validator.PlacaRegexValidatorService
iped.engine.task.regex.validator.IPLRegexValidatorService
iped.engine.task.regex.validator.FacebookContactValidatorService
iped.engine.task.regex.validator.RIFRegexValidatorService
iped.engine.task.regex.validator.cripto.DogeCoinAddressValidatorService
iped.engine.task.regex.validator.cripto.DashAddressValidatorService
iped.engine.task.regex.validator.cripto.LiteCoinAddressValidatorService
iped.engine.task.regex.validator.crypto.DogeCoinAddressValidatorService
iped.engine.task.regex.validator.crypto.DashAddressValidatorService
iped.engine.task.regex.validator.crypto.LiteCoinAddressValidatorService
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import iped.engine.task.regex.validator.crypto.BCHAddressValidatorService;

public class BCHAddressValidatorServiceTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import iped.engine.task.regex.validator.crypto.BitcoinAddressValidatorService;

public class BitcoinAddressValidatorServiceTest {

BitcoinAddressValidatorService service = new BitcoinAddressValidatorService();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import iped.engine.task.regex.validator.crypto.DashAddressValidatorService;

public class DashAddressValidatorServiceTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import iped.engine.task.regex.validator.crypto.DogeCoinAddressValidatorService;

public class DogeCoinAddressValidatorServiceTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import iped.engine.task.regex.validator.crypto.EthereumAddressValidatorService;

public class EthereumAddressValidatorServiceTest {

EthereumAddressValidatorService service = new EthereumAddressValidatorService();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import iped.engine.task.regex.validator.crypto.LiteCoinAddressValidatorService;

public class LiteCoinAddressValidatorServiceTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package iped.engine.task.regex.validator.cripto;
package iped.engine.task.regex.validator.crypto;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import iped.engine.task.regex.validator.crypto.RippleAddressValidatorService;

public class RippleAddressValidatorServiceTest {
RippleAddressValidatorService service = new RippleAddressValidatorService();

Expand Down

0 comments on commit 678d90d

Please sign in to comment.