Skip to content

Commit

Permalink
Deployed 9d61028 to Main with MkDocs 1.3.0 and mike 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
smallrye-ci committed Jul 17, 2023
1 parent f6b7bb9 commit 9e40146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Main/config/secret-handlers/encryptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@
@Command(name = "encryptor", mixinStandardHelpOptions = true)
class encryptor implements Callable<Integer> {
@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)
Expand All @@ -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);
Expand Down
Binary file modified Main/sitemap.xml.gz
Binary file not shown.

0 comments on commit 9e40146

Please sign in to comment.