More cleanup and adds some helper functions to new utility classes

This commit is contained in:
2021-08-28 18:28:50 +02:00
parent e1494440c8
commit cedb93be40
7 changed files with 386 additions and 277 deletions

View File

@@ -0,0 +1,16 @@
package net.knarcraft.bookswithoutborders.util;
import net.knarcraft.bookswithoutborders.utility.EncryptionHelper;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class EncryptionHelperTest {
@Test
public void getNumberKeyFromStringKey() {
String numberKey = EncryptionHelper.getNumberKeyFromStringKey("hello");
assertEquals("1714212124", numberKey);
}
}