From 1d33e76c69f39e52a3bfbd4168f086cb6417abdf Mon Sep 17 00:00:00 2001 From: ByteDream <63594396+ByteDream@users.noreply.github.com> Date: Thu, 3 Sep 2020 20:24:18 +0000 Subject: [PATCH] Delete Utils.java --- src/org/bytedream/cryptogx/Utils.java | 51 --------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/org/bytedream/cryptogx/Utils.java diff --git a/src/org/bytedream/cryptogx/Utils.java b/src/org/bytedream/cryptogx/Utils.java deleted file mode 100644 index 8b4f8e0..0000000 --- a/src/org/bytedream/cryptogx/Utils.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.bytedream.cryptogx; - -import java.util.TreeMap; - -/** - *

Support class

- * - * @since 1.3.0 - */ -public class Utils { - - public static TreeMap algorithms = allAlgorithms(); - - /** - *

Get all available algorithms

- * - * @return all available algorithms - * - * @since 1.12.0 - */ - private static TreeMap allAlgorithms() { - TreeMap return_map = new TreeMap<>(); - - int[] aesKeySizes = {128, 192, 256}; - - for (int i: aesKeySizes) { - return_map.put("AES-" + i, "AES"); - } - - return return_map; - } - - /** - *

Checks if any character in {@param characters} appears in {@param string}

- * - * @param characters that should be searched in {@param string} - * @param string that should be searched for the characters - * @return if any character in {@param characters} appears in {@param string} - * - * @since 1.3.0 - */ - public static boolean hasAnyCharacter(CharSequence characters, String string) { - for (char c: characters.toString().toCharArray()) { - if (string.indexOf(c) != -1) { - return false; - } - } - return true; - } - -}