Skip to content

Commit c0fa0b3

Browse files
author
Roland Schuller
committed
Updated Libraries
1 parent 29dcddb commit c0fa0b3

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

pom.xml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@
2525
<dependency>
2626
<groupId>io.netty</groupId>
2727
<artifactId>netty-all</artifactId>
28-
<version>4.1.36.Final</version>
28+
<version>4.1.38.Final</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>io.jsonwebtoken</groupId>
3232
<artifactId>jjwt-api</artifactId>
33-
<version>0.10.6</version>
33+
<version>0.10.7</version>
3434
</dependency>
3535
<dependency>
3636
<groupId>io.jsonwebtoken</groupId>
3737
<artifactId>jjwt-impl</artifactId>
38-
<version>0.10.6</version>
38+
<version>0.10.7</version>
3939
</dependency>
4040
<dependency>
4141
<groupId>io.jsonwebtoken</groupId>
4242
<artifactId>jjwt-jackson</artifactId>
43-
<version>0.10.6</version>
43+
<version>0.10.7</version>
4444
</dependency>
4545
<dependency>
4646
<groupId>com.fasterxml.jackson.core</groupId>
4747
<artifactId>jackson-databind</artifactId>
48-
<version>2.9.9</version>
48+
<version>2.9.9.2</version>
4949
</dependency>
5050
<dependency>
5151
<groupId>org.apache.httpcomponents</groupId>
@@ -62,12 +62,18 @@
6262
<artifactId>oshi-core</artifactId>
6363
<version>3.13.3</version>
6464
</dependency>
65+
6566
<dependency>
6667
<groupId>junit</groupId>
6768
<artifactId>junit</artifactId>
6869
<version>4.12</version>
6970
<scope>test</scope>
7071
</dependency>
72+
<dependency>
73+
<groupId>commons-codec</groupId>
74+
<artifactId>commons-codec</artifactId>
75+
<version>1.13</version>
76+
</dependency>
7177
</dependencies>
7278
<properties>
7379
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/at/itopen/simplerest/microservice/loadbalancer/Encryption.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,28 +132,28 @@ public static String correctINITV(String key) {
132132
*/
133133
public static String SHA512(String input) {
134134
try {
135-
// getInstance() method is called with algorithm SHA-512
135+
// getInstance() method is called with algorithm SHA-512
136136
MessageDigest md = MessageDigest.getInstance("SHA-512");
137137

138-
// digest() method is called
139-
// to calculate message digest of the input string
140-
// returned as array of byte
138+
// digest() method is called
139+
// to calculate message digest of the input string
140+
// returned as array of byte
141141
byte[] messageDigest = md.digest(input.getBytes());
142142

143-
// Convert byte array into signum representation
143+
// Convert byte array into signum representation
144144
BigInteger no = new BigInteger(1, messageDigest);
145145

146-
// Convert message digest into hex value
146+
// Convert message digest into hex value
147147
String hashtext = no.toString(16);
148148

149-
// Add preceding 0s to make it 32 bit
149+
// Add preceding 0s to make it 32 bit
150150
while (hashtext.length() < 32) {
151151
hashtext = "0" + hashtext;
152152
}
153153

154-
// return the HashText
154+
// return the HashText
155155
return hashtext;
156-
} // For specifying wrong message digest algorithms
156+
} // For specifying wrong message digest algorithms
157157
catch (NoSuchAlgorithmException e) {
158158
throw new RuntimeException(e);
159159
}

0 commit comments

Comments
 (0)