Skip to content

Commit fd8baf4

Browse files
author
Samuel Facchinello
committed
fix clang
1 parent 5e34842 commit fd8baf4

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/main/java/com/thealgorithms/ciphers/ColumnarTranspositionCipher.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Columnar Transposition Cipher Encryption and Decryption.
88
*/
9-
public class ColumnarTranspositionCipher {
9+
public final class ColumnarTranspositionCipher {
1010

1111
private static final char PADDING_CHAR = '≈';
1212

@@ -120,15 +120,4 @@ private static Integer[] getColumnOrder(String key) {
120120
Arrays.sort(order, Comparator.comparingInt(o -> keyChars[o]));
121121
return order;
122122
}
123-
124-
public static void main(String[] args) {
125-
String keywordForExample = "asd215";
126-
String wordBeingEncrypted = "This is a test of the Columnar Transposition Cipher";
127-
System.out.println("### Example of Columnar Transposition Cipher ###\n");
128-
System.out.println("Word being encryped ->>> " + wordBeingEncrypted);
129-
String encryptedMessage = ColumnarTranspositionCipher.encrypt(wordBeingEncrypted, keywordForExample);
130-
System.out.println("Word encrypted ->>> " + encryptedMessage);
131-
System.out.println("Word decryped ->>> " + ColumnarTranspositionCipher.decrypt(encryptedMessage, keywordForExample));
132-
133-
}
134123
}

0 commit comments

Comments
 (0)