Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 20923d9

Browse files
committedJun 25, 2024
API codebase change; add org.apache:commons-cli
1 parent 4b8c363 commit 20923d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+457
-229
lines changed
 

‎build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ echo "// Compiling the Osintgram4j API"
118118
find modapi/src -name "*.java" -type f -print0 | xargs -0 "$JAVAC_CMD" -cp out/project/commons:out/libs/json.jar -d out/project/modapi
119119

120120
echo "// Compiling the Core Application"
121-
find src -name "*.java" -type f -print0 | xargs -0 "$JAVAC_CMD" -cp out/project/modapi:out/project/commons:out/project/instagram-api:out/libs/json.jar -d out/project/core
121+
find src -name "*.java" -type f -print0 | xargs -0 "$JAVAC_CMD" -cp out/project/modapi:out/project/commons:out/project/instagram-api:out/libs/commons-cli.jar:out/libs/json.jar -d out/project/core
122122

123123
echo "// Adding resources to the Core Application"
124124
cp -r src/net/bc100dev/osintgram4j/res out/project/core/net/bc100dev/osintgram4j/
@@ -191,4 +191,4 @@ if [[ "$INSTALL_CHOICE" =~ ^[Yy]$ ]]; then
191191
echo "Osintgram4j automatically uninstalled."
192192
else
193193
echo "You can run Osintgram from this directory and forwards by going to $PWD and run './bin/osintgram4j'"
194-
fi
194+
fi

‎commons/src/net/bc100dev/commons/utils/io/FileEncryption.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
public class FileEncryption {
1818

19-
private static final byte[] salt = {
19+
private static final byte[] defaultEncryptionSalt = {
2020
(byte) 0x43, (byte) 0x76, (byte) 0x95, (byte) 0xc7,
2121
(byte) 0x5b, (byte) 0xd7, (byte) 0x45, (byte) 0x17
2222
};
2323

2424
private static Cipher makeCipher(String pass, boolean doEncrypt) throws GeneralSecurityException {
25-
PBEKeySpec keySpec = new PBEKeySpec(pass.toCharArray(), salt, 65536, 256);
25+
PBEKeySpec keySpec = new PBEKeySpec(pass.toCharArray(), defaultEncryptionSalt, 65536, 256);
2626
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256");
2727
SecretKey key = keyFactory.generateSecret(keySpec);
2828
SecretKeySpec secretKeySpec = new SecretKeySpec(key.getEncoded(), "AES");

0 commit comments

Comments
 (0)
This repository has been archived.