From 9e401464b4f3d42e4fc3760334767ba17fd46e89 Mon Sep 17 00:00:00 2001 From: SmallRye CI Date: Mon, 17 Jul 2023 17:52:42 +0000 Subject: [PATCH] Deployed 9d61028 to Main with MkDocs 1.3.0 and mike 1.1.2 --- Main/config/secret-handlers/encryptor.java | 10 ++-------- Main/sitemap.xml.gz | Bin 456 -> 456 bytes 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Main/config/secret-handlers/encryptor.java b/Main/config/secret-handlers/encryptor.java index 5564af855..a70e7b0b1 100644 --- a/Main/config/secret-handlers/encryptor.java +++ b/Main/config/secret-handlers/encryptor.java @@ -21,11 +21,9 @@ @Command(name = "encryptor", mixinStandardHelpOptions = true) class encryptor implements Callable { @Option(names = {"-s", "--secret" }, description = "Secret", required = true) - private String secret; + String secret; @Option(names = {"-k", "--key" }, description = "Encryption Key") - private String encryptionKey; - @Option(names = {"-b"}, description = "Encryption Key in Base64 format", defaultValue = "false") - private boolean base64EncryptionKey; + String encryptionKey; @Option(names = {"-a", "--algorithm" }, description = "Algorithm", defaultValue = "AES", hidden = true) String algorithm; @Option(names = {"-m", "--mode" }, description = "Mode", defaultValue = "GCM", hidden = true) @@ -42,10 +40,6 @@ public static void main(String... args) { public Integer call() throws Exception { if (encryptionKey == null) { encryptionKey = encodeToString(generateEncryptionKey().getEncoded()); - } else { - if (!base64EncryptionKey) { - encryptionKey = encodeToString(encryptionKey.getBytes(StandardCharsets.UTF_8)); - } } Cipher cipher = Cipher.getInstance(algorithm + "/" + mode + "/" + padding); diff --git a/Main/sitemap.xml.gz b/Main/sitemap.xml.gz index 4dede887241506fc14a949185aa861d9e07923db..70ceca863512975329a9cc46bd34e65e7644d32a 100644 GIT binary patch delta 15 WcmX@Xe1e%xzMF&NW&K9BLyQ0^Tm?A* delta 15 WcmX@Xe1e%xzMF$1w`e2VAw~cuGX$^z