Fix pipe warning.
Change-Id: I0a61e5d4b4cf66d18f93676fa4f04edff31b55fd
diff --git a/full/Changes b/full/Changes
index 906cb47..b604b95 100644
--- a/full/Changes
+++ b/full/Changes
@@ -7,6 +7,8 @@
- Added database methods for storing query references (diewald)
04/12/2020
- Fix hibernate dialect for SQLite. (margaretha)
+04/12/2020
+ - Fix pipe warning. (margaretha)
# version 0.62.4
24/01/2020
diff --git a/full/src/test/java/de/ids_mannheim/korap/misc/BCryptTest.java b/full/src/test/java/de/ids_mannheim/korap/misc/BCryptTest.java
new file mode 100644
index 0000000..ec8c85d
--- /dev/null
+++ b/full/src/test/java/de/ids_mannheim/korap/misc/BCryptTest.java
@@ -0,0 +1,21 @@
+package de.ids_mannheim.korap.misc;
+
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+import org.mindrot.jbcrypt.BCrypt;
+
+public class BCryptTest {
+
+ @Test
+ public void testSalt () {
+ String salt = BCrypt.gensalt(8);
+ System.out.println(salt);
+
+ String plain = "secret";
+ String password = BCrypt.hashpw(plain, salt);
+ System.out.println(password);
+
+ assertTrue(BCrypt.checkpw(plain, password));
+ }
+}