Inconsistent String Comparisons, Applied patch for framework entityext, webapp, webtools and widgets classes.

Thanks Devanshu Vyas for your contribution (OFBIZ-9254)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812279 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Deepak Dixit
2017-10-16 10:32:22 +00:00
parent 8dceb2fc0a
commit 761959d47d
18 changed files with 66 additions and 66 deletions
@@ -23,15 +23,15 @@ import org.apache.shiro.crypto.AesCipherService;
public class Main {
public static void main(String[] args) throws Exception {
if (args[0].equals("-crypt")) {
if ("-crypt".equals(args[0])) {
System.out.println(HashCrypt.cryptUTF8(args[1], null, args[2]));
} else if (args[0].equals("-digest")) {
} else if ("-digest".equals(args[0])) {
String digest = HashCrypt.digestHash("SHA", null, args[1]);
System.out.println(digest);
} else if (args[0].equals("-kek")) {
} else if ("-kek".equals(args[0])) {
AesCipherService cs = new AesCipherService();
System.out.println(Base64.encodeBase64String(cs.generateNewKey().getEncoded()));
} else if (args[0].equals("-kek-old")) {
} else if ("-kek-old".equals(args[0])) {
System.out.println(Base64.encodeBase64String(DesCrypt.generateKey().getEncoded()));
}
}