From 6a05de2b3058c50bf93cde1bd3914a53d8721969 Mon Sep 17 00:00:00 2001 From: jomu Date: Mon, 20 Aug 2018 23:39:18 +0200 Subject: [PATCH] removed obslete code --- jmpass/pom.xml | 30 ------- .../de/muehlencord/shared/jmpass/Bcrypt.java | 56 ------------- .../muehlencord/shared/jmpass/Password.java | 82 ------------------- .../shared/jmpass/PasswordException.java | 26 ------ .../shared/jmpass/PasswordValidator.java | 16 ---- .../de/muehlencord/shared/jmpass/AppTest.java | 38 --------- 6 files changed, 248 deletions(-) delete mode 100644 jmpass/pom.xml delete mode 100644 jmpass/src/main/java/de/muehlencord/shared/jmpass/Bcrypt.java delete mode 100644 jmpass/src/main/java/de/muehlencord/shared/jmpass/Password.java delete mode 100644 jmpass/src/main/java/de/muehlencord/shared/jmpass/PasswordException.java delete mode 100644 jmpass/src/main/java/de/muehlencord/shared/jmpass/PasswordValidator.java delete mode 100644 jmpass/src/test/java/de/muehlencord/shared/jmpass/AppTest.java diff --git a/jmpass/pom.xml b/jmpass/pom.xml deleted file mode 100644 index b825b3c..0000000 --- a/jmpass/pom.xml +++ /dev/null @@ -1,30 +0,0 @@ - - 4.0.0 - - de.muehlencord.shared - jmpass - 1.0-SNAPSHOT - jar - - jmpass - http://www.mühlencord.de/ - - - Bugzilla - https://jomu.timelord.de/bugzilla/ - - - - UTF-8 - - - - - junit - junit - 4.10 - test - - - diff --git a/jmpass/src/main/java/de/muehlencord/shared/jmpass/Bcrypt.java b/jmpass/src/main/java/de/muehlencord/shared/jmpass/Bcrypt.java deleted file mode 100644 index fed5abc..0000000 --- a/jmpass/src/main/java/de/muehlencord/shared/jmpass/Bcrypt.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package de.muehlencord.shared.jmpass; - -/** - * - * @author jomu - */ -public class Bcrypt { - - // http://en.wikipedia.org/wiki/Bcrypt - - public String bcrypt(long cost, byte[] salt, String input) { - String state = eksBlowfishSetup(cost, salt, input); - String cText = "OrpheanBeholderScryDoubt"; // FIXME - what is this string for, 3 64 bit blocks - for (int i=0; i<64; i++) { // FIXME - why 64? - cText = encryptECB(state, cText); - } - return concatenate(cost, salt, cText); - } - - private String eksBlowfishSetup(long cost, String salt, String key) { - String state = initState(); - state = expandKey (state, salt, key); - // TODO buffer overflow check, max size of cost - long rounds = Math.round(Math.pow(2, cost)); - for (int i=0; i