Skip to content

Commit

Permalink
Fix some issues and updated the libraries version
Browse files Browse the repository at this point in the history
  • Loading branch information
N7ghtm4r3 committed Dec 3, 2023
1 parent 1077996 commit 35a0cf4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
Binary file modified .gradle/7.5.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/7.5.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Glider
**v1.0.4**
**v1.0.5**

This is a Java Based open source project useful to manage the creation and the storage of your passwords
with the **Glider** ecosystem
Expand Down Expand Up @@ -36,15 +36,15 @@ Add the JitPack repository to your build file
```gradle
dependencies {
implementation 'com.github.N7ghtm4r3:Glider:1.0.4'
implementation 'com.github.N7ghtm4r3:Glider:1.0.5'
}
```
#### Gradle (Kotlin)
```gradle
dependencies {
implementation("com.github.N7ghtm4r3:Glider:1.0.4")
implementation("com.github.N7ghtm4r3:Glider:1.0.5")
}
```
Expand All @@ -66,7 +66,7 @@ Add the JitPack repository to your build file
<dependency>
<groupId>com.github.N7ghtm4r3</groupId>
<artifactId>Glider</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion documd/GliderBackend.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ values of the "configuration" branch, then save it.
To correctly launch the backend service you must:
<ul>
<li>
download the jar file <b>(GliderBackendService.jar)</b> of the backend service from the <b>assets</b> section <a href="https://github.com/N7ghtm4r3/Glider/releases/tag/1.0.4">here</a>
download the jar file <b>(GliderBackendService.jar)</b> of the backend service from the <b>assets</b> section <a href="https://github.com/N7ghtm4r3/Glider/releases/tag/1.0.5">here</a>
</li>
<li>
create a JSON file named <b>"glider_configs.json"</b>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import com.tecknobit.glider.records.Session.SessionKeys;
import org.json.JSONObject;

import javax.crypto.BadPaddingException;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
import java.io.*;
Expand Down Expand Up @@ -620,15 +619,15 @@ public void startService() throws IOException {
String ipAddress = SocketManager.getIpAddress(socketManager.acceptRequest());
try {
request = new JSONObject(socketManager.readContent());
} catch (IllegalArgumentException | BadPaddingException e) {
} catch (Exception e) {
String privateSecretKey = session.getSecretKey();
if (socketManager.getBase64SecretKey().equals(privateSecretKey))
socketManager.changeCipherKeys(publicIvSpec, publicCipherKey);
else
socketManager.changeCipherKeys(session.getIvSpec(), privateSecretKey);
try {
request = new JSONObject(socketManager.readLastContent());
} catch (IllegalArgumentException | BadPaddingException eP) {
} catch (Exception eP) {
socketManager.writePlainContent(new JSONObject().put(ivSpec.name(), publicIvSpec)
.put(secretKey.name(), publicCipherKey));
request = null;
Expand Down

0 comments on commit 35a0cf4

Please sign in to comment.