Update to add more properties
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.combination;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class AdfgvxCipherController{
|
||||
private String adfgvxName;
|
||||
@Value("${cipher.combination.adfgvx.description}")
|
||||
private String adfgvxDescription;
|
||||
@Value("${cipher.combination.adfgvx.explanation}")
|
||||
private List<String> adfgvxExplanation;
|
||||
@Value("${cipher.combination.adfgvx.facts}")
|
||||
private List<String> adfgvxFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class AdfgvxCipherController{
|
||||
log.info("Getting info for {}", adfgvxName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(adfgvxName, adfgvxDescription);
|
||||
return CipherInfoUtil.buildInfoNode(adfgvxName, adfgvxDescription, adfgvxExplanation, adfgvxFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.combination;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class AdfgxCipherController{
|
||||
private String adfgxName;
|
||||
@Value("${cipher.combination.adfgx.description}")
|
||||
private String adfgxDescription;
|
||||
@Value("${cipher.combination.adfgx.explanation}")
|
||||
private List<String> adfgxExplanation;
|
||||
@Value("${cipher.combination.adfgx.facts}")
|
||||
private List<String> adfgxFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class AdfgxCipherController{
|
||||
log.info("Getting info for {}", adfgxName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(adfgxName, adfgxDescription);
|
||||
return CipherInfoUtil.buildInfoNode(adfgxName, adfgxDescription, adfgxExplanation, adfgxFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class AffineCipherController{
|
||||
private String affineName;
|
||||
@Value("${cipher.mono.affine.description}")
|
||||
private String affineDescription;
|
||||
@Value("${cipher.mono.affine.explanation}")
|
||||
private List<String> affineExplanation;
|
||||
@Value("${cipher.mono.affine.facts}")
|
||||
private List<String> affineFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class AffineCipherController{
|
||||
log.info("Getting info for {}", affineName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(affineName, affineDescription);
|
||||
return CipherInfoUtil.buildInfoNode(affineName, affineDescription, affineExplanation, affineFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class AtbashCipherController{
|
||||
private String atbashName;
|
||||
@Value("${cipher.mono.atbash.description}")
|
||||
private String atbashDescription;
|
||||
@Value("${cipher.mono.atbash.explanation}")
|
||||
private List<String> atbashExplanation;
|
||||
@Value("${cipher.mono.atbash.facts}")
|
||||
private List<String> atbashFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class AtbashCipherController{
|
||||
log.info("Getting info for {}", atbashName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(atbashName, atbashDescription);
|
||||
return CipherInfoUtil.buildInfoNode(atbashName, atbashDescription, atbashExplanation, atbashFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class AutokeyCipherController{
|
||||
private String autokeyName;
|
||||
@Value("${cipher.mono.autokey.description}")
|
||||
private String autokeyDescription;
|
||||
@Value("${cipher.mono.autokey.explanation}")
|
||||
private List<String> autokeyExplanation;
|
||||
@Value("${cipher.mono.autokey.facts}")
|
||||
private List<String> autokeyFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class AutokeyCipherController{
|
||||
log.info("Getting info for {}", autokeyName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(autokeyName, autokeyDescription);
|
||||
return CipherInfoUtil.buildInfoNode(autokeyName, autokeyDescription, autokeyExplanation, autokeyFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class BaconianCipherController{
|
||||
private String baconianName;
|
||||
@Value("${cipher.mono.baconian.description}")
|
||||
private String baconianDescription;
|
||||
@Value("${cipher.mono.baconian.explanation}")
|
||||
private List<String> baconianExplanation;
|
||||
@Value("${cipher.mono.baconian.facts}")
|
||||
private List<String> baconianFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class BaconianCipherController{
|
||||
log.info("Getting info for {}", baconianName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(baconianName, baconianDescription);
|
||||
return CipherInfoUtil.buildInfoNode(baconianName, baconianDescription, baconianExplanation, baconianFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class BaseXCipherController{
|
||||
private String baseXName;
|
||||
@Value("${cipher.mono.basex.description}")
|
||||
private String baseXDescription;
|
||||
@Value("${cipher.mono.baseX.explanation}")
|
||||
private List<String> baseXExplanation;
|
||||
@Value("${cipher.mono.baseX.facts}")
|
||||
private List<String> baseXFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class BaseXCipherController{
|
||||
log.info("Getting info for {}", baseXName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(baseXName, baseXDescription);
|
||||
return CipherInfoUtil.buildInfoNode(baseXName, baseXDescription, baseXExplanation, baseXFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class BeaufortCipherController{
|
||||
private String beaufortName;
|
||||
@Value("${cipher.mono.beaufort.description}")
|
||||
private String beaufortDescription;
|
||||
@Value("${cipher.mono.beaufort.explanation}")
|
||||
private List<String> beaufortExplanation;
|
||||
@Value("${cipher.mono.beaufort.facts}")
|
||||
private List<String> beaufortFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class BeaufortCipherController{
|
||||
log.info("Getting info for {}", beaufortName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(beaufortName, beaufortDescription);
|
||||
return CipherInfoUtil.buildInfoNode(beaufortName, beaufortDescription, beaufortExplanation, beaufortFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class CaesarCipherController{
|
||||
private String caesarName;
|
||||
@Value("${cipher.mono.caesar.description}")
|
||||
private String caesarDescription;
|
||||
@Value("${cipher.mono.caesar.explanation}")
|
||||
private List<String> caesarExplanation;
|
||||
@Value("${cipher.mono.caesar.facts}")
|
||||
private List<String> caesarFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class CaesarCipherController{
|
||||
log.info("Getting info for {}", caesarName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(caesarName, caesarDescription);
|
||||
return CipherInfoUtil.buildInfoNode(caesarName, caesarDescription, caesarExplanation, caesarFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class OneTimePadCipherController{
|
||||
private String oneTimePadName;
|
||||
@Value("${cipher.mono.onetimepad.description}")
|
||||
private String oneTimePadDescription;
|
||||
@Value("${cipher.mono.oneTimePad.explanation}")
|
||||
private List<String> oneTimePadExplanation;
|
||||
@Value("${cipher.mono.oneTimePad.facts}")
|
||||
private List<String> oneTimePadFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class OneTimePadCipherController{
|
||||
log.info("Getting info for {}", oneTimePadName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(oneTimePadName, oneTimePadDescription);
|
||||
return CipherInfoUtil.buildInfoNode(oneTimePadName, oneTimePadDescription, oneTimePadExplanation, oneTimePadFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class PortaCipherController{
|
||||
private String portaName;
|
||||
@Value("${cipher.mono.porta.description}")
|
||||
private String portaDescription;
|
||||
@Value("${cipher.mono.porta.explanation}")
|
||||
private List<String> portaExplanation;
|
||||
@Value("${cipher.mono.porta.facts}")
|
||||
private List<String> portaFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class PortaCipherController{
|
||||
log.info("Getting info for {}", portaName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(portaName, portaDescription);
|
||||
return CipherInfoUtil.buildInfoNode(portaName, portaDescription, portaExplanation, portaFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class SubstitutionCipherController{
|
||||
private String substitutionName;
|
||||
@Value("${cipher.mono.substitution.description}")
|
||||
private String substitutionDescription;
|
||||
@Value("${cipher.mono.substitution.explanation}")
|
||||
private List<String> substitutionExplanation;
|
||||
@Value("${cipher.mono.substitution.facts}")
|
||||
private List<String> substitutionFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class SubstitutionCipherController{
|
||||
log.info("Getting info for {}", substitutionName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(substitutionName, substitutionDescription);
|
||||
return CipherInfoUtil.buildInfoNode(substitutionName, substitutionDescription, substitutionExplanation, substitutionFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.monosubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class VigenereCipherController{
|
||||
private String vigenereName;
|
||||
@Value("${cipher.mono.vigenere.description}")
|
||||
private String vigenereDescription;
|
||||
@Value("${cipher.mono.vigenere.explanation}")
|
||||
private List<String> vigenereExplanation;
|
||||
@Value("${cipher.mono.vigenere.facts}")
|
||||
private List<String> vigenereFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class VigenereCipherController{
|
||||
log.info("Getting info for {}", vigenereName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(vigenereName, vigenereDescription);
|
||||
return CipherInfoUtil.buildInfoNode(vigenereName, vigenereDescription, vigenereExplanation, vigenereFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class BifidCipherController{
|
||||
private String bifidName;
|
||||
@Value("${cipher.poly.bifid.description}")
|
||||
private String bifidDescription;
|
||||
@Value("${cipher.poly.bifid.explanation}")
|
||||
private List<String> bifidExplanation;
|
||||
@Value("${cipher.poly.bifid.facts}")
|
||||
private List<String> bifidFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class BifidCipherController{
|
||||
log.info("Getting info for {}", bifidName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(bifidName, bifidDescription);
|
||||
return CipherInfoUtil.buildInfoNode(bifidName, bifidDescription, bifidExplanation, bifidFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class ColumnarCipherController{
|
||||
private String columnarName;
|
||||
@Value("${cipher.poly.columnar.description}")
|
||||
private String columnarDescription;
|
||||
@Value("${cipher.poly.columnar.explanation}")
|
||||
private List<String> columnarExplanation;
|
||||
@Value("${cipher.poly.columnar.facts}")
|
||||
private List<String> columnarFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class ColumnarCipherController{
|
||||
log.info("Getting info for {}", columnarName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(columnarName, columnarDescription);
|
||||
return CipherInfoUtil.buildInfoNode(columnarName, columnarDescription, columnarExplanation, columnarFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -30,6 +32,10 @@ public class HillCipherController{
|
||||
private String hillName;
|
||||
@Value("${cipher.poly.hill.description}")
|
||||
private String hillDescription;
|
||||
@Value("${cipher.poly.hill.explanation}")
|
||||
private List<String> hillExplanation;
|
||||
@Value("${cipher.poly.hill.facts}")
|
||||
private List<String> hillFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -38,7 +44,7 @@ public class HillCipherController{
|
||||
log.info("Getting info for {}", hillName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(hillName, hillDescription);
|
||||
return CipherInfoUtil.buildInfoNode(hillName, hillDescription, hillExplanation, hillFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class MorseCodeController{
|
||||
private String morseName;
|
||||
@Value("${cipher.poly.morse.description}")
|
||||
private String morseDescription;
|
||||
@Value("${cipher.poly.morse.explanation}")
|
||||
private List<String> morseExplanation;
|
||||
@Value("${cipher.poly.morse.facts}")
|
||||
private List<String> morseFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class MorseCodeController{
|
||||
log.info("Getting info for {}", morseName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(morseName, morseDescription);
|
||||
return CipherInfoUtil.buildInfoNode(morseName, morseDescription, morseExplanation, morseFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class PlayfairCipherController{
|
||||
private String playfairName;
|
||||
@Value("${cipher.poly.playfair.description}")
|
||||
private String playfairDescription;
|
||||
@Value("${cipher.poly.playfair.explanation}")
|
||||
private List<String> playfairExplanation;
|
||||
@Value("${cipher.poly.playfair.facts}")
|
||||
private List<String> playfairFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class PlayfairCipherController{
|
||||
log.info("Getting info for {}", playfairName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(playfairName, playfairDescription);
|
||||
return CipherInfoUtil.buildInfoNode(playfairName, playfairDescription, playfairExplanation, playfairFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class PolybiusSquareController{
|
||||
private String polybiusName;
|
||||
@Value("${cipher.poly.polybius.description}")
|
||||
private String polybiusDescription;
|
||||
@Value("${cipher.poly.polybius.explanation}")
|
||||
private List<String> polybiusExplanation;
|
||||
@Value("${cipher.poly.polybius.facts}")
|
||||
private List<String> polybiusFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class PolybiusSquareController{
|
||||
log.info("Getting info for {}", polybiusName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(polybiusName, polybiusDescription);
|
||||
return CipherInfoUtil.buildInfoNode(polybiusName, polybiusDescription, polybiusExplanation, polybiusFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class RailFenceController{
|
||||
private String railFenceName;
|
||||
@Value("${cipher.poly.railfence.description}")
|
||||
private String railFenceDescription;
|
||||
@Value("${cipher.poly.railfence.explanation}")
|
||||
private List<String> railFenceExplanation;
|
||||
@Value("${cipher.poly.railfence.facts}")
|
||||
private List<String> railFenceFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class RailFenceController{
|
||||
log.info("Getting info for {}", railFenceName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(railFenceName, railFenceDescription);
|
||||
return CipherInfoUtil.buildInfoNode(railFenceName, railFenceDescription, railFenceExplanation, railFenceFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.controller.polysubstitution;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
@@ -28,6 +30,10 @@ public class TrifidCipherController{
|
||||
private String trifidName;
|
||||
@Value("${cipher.poly.trifid.description}")
|
||||
private String trifidDescription;
|
||||
@Value("${cipher.poly.trifid.explanation}")
|
||||
private List<String> trifidExplanation;
|
||||
@Value("${cipher.poly.trifid.facts}")
|
||||
private List<String> trifidFacts;
|
||||
|
||||
|
||||
@GetMapping
|
||||
@@ -36,7 +42,7 @@ public class TrifidCipherController{
|
||||
log.info("Getting info for {}", trifidName);
|
||||
|
||||
|
||||
return CipherInfoUtil.buildInfoNode(trifidName, trifidDescription);
|
||||
return CipherInfoUtil.buildInfoNode(trifidName, trifidDescription, trifidExplanation, trifidFacts);
|
||||
}
|
||||
|
||||
@PostMapping("/encode")
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.mattrixwv.cipherstream.utils;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
|
||||
@@ -15,14 +17,18 @@ public class CipherInfoUtil{
|
||||
//Parameters
|
||||
public static final String CIPHER_NAME = "name";
|
||||
public static final String CIPHER_DESCRIPTION = "description";
|
||||
public static final String CIPHER_EXPLANATION = "explanation";
|
||||
public static final String CIPHER_FACTS = "facts";
|
||||
|
||||
|
||||
public static ObjectNode buildInfoNode(String name, String description){
|
||||
public static ObjectNode buildInfoNode(String name, String description, List<String> explanation, List<String> facts){
|
||||
ObjectNode infoNode = mapper.createObjectNode();
|
||||
|
||||
|
||||
infoNode.put(CIPHER_NAME, name);
|
||||
infoNode.put(CIPHER_DESCRIPTION, description);
|
||||
infoNode.set(CIPHER_EXPLANATION, mapper.valueToTree(explanation));
|
||||
infoNode.set(CIPHER_FACTS, mapper.valueToTree(facts));
|
||||
|
||||
|
||||
return infoNode;
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#Mono-Substitution
|
||||
#Affine
|
||||
cipher.mono.affine.name=Affine
|
||||
cipher.mono.affine.description=The Affine cipher is a monoalphabetic substitution cipher, where each letter in an alphabet is mapped to a numeric equivalent, encrypted, and then converted back to a letter. \
|
||||
cipher.mono.affine.description=
|
||||
cipher.mono.affine.explanation=The Affine cipher is a monoalphabetic substitution cipher, where each letter in an alphabet is mapped to a numeric equivalent, encrypted, and then converted back to a letter. \
|
||||
The formula used in this encryption is F(x) = (ax + b) % m, where x is the original letter, a and b are the keys of the cipher, and m is the length of the alphabet, with a and m being coprime.\
|
||||
Decryption is performed using the formula F(x) = a^-1(x - b) % m.\
|
||||
The Affine cipher is a relatively weak cipher compared to modern encryption methods because it's vulnerable to frequency analysis and other cryptanalysis techniques. However, it's simple to implement and understand, making it a good introduction to encryption concepts.
|
||||
@@ -9,7 +10,8 @@ cipher.mono.affine.facts=
|
||||
|
||||
#Atbash
|
||||
cipher.mono.atbash.name=Atbash
|
||||
cipher.mono.atbash.description=The Atbash cipher is a monoalphabetic substitution cipher and is one of the simplest and oldest forms of encryption. \
|
||||
cipher.mono.atbash.description=
|
||||
cipher.mono.atbash.explanation=The Atbash cipher is a monoalphabetic substitution cipher and is one of the simplest and oldest forms of encryption. \
|
||||
Encryption involves replacing each letter with its reverse counterpart. i.e. A becomes Z, B becomes Y, etc. \
|
||||
Decryption is performed using the same formula as encryption. \
|
||||
Atbash cipher can effectively obscure the meaning of a message to those unfamiliar with the technique. However, it's very vulnerable to cryptanalysis, especially frequency analysis, and it provides very little security against modern decryption techniques.
|
||||
@@ -18,7 +20,8 @@ The Atbash cipher is a special case of the Affine cipher with a = 25 and b = 25.
|
||||
|
||||
#Autokey
|
||||
cipher.mono.autokey.name=Autokey
|
||||
cipher.mono.autokey.description=The autokey cipher extends the Vigenere cipher. Like the Vigenere cipher it uses a keyword to encrypt plaintext, but it also incorporates the plaintext itself into the keystream. \
|
||||
cipher.mono.autokey.description=
|
||||
cipher.mono.autokey.explanation=The autokey cipher extends the Vigenere cipher. Like the Vigenere cipher it uses a keyword to encrypt plaintext, but it also incorporates the plaintext itself into the keystream. \
|
||||
Encryption works by concatenating the message to the keyword. Then you convert the resulting key into a series of numeric values mod 26. Then you advance each letter the indicated number of letters similar to the Caesar cipher. \
|
||||
Decryption works by converting the key the same as encryption, but instead of advancing each letter the given amount the values retreat. As each letter is decrypted the letter needs added to the key as well as the output so that decryption can continue. \
|
||||
The Autokey cipher is more secure than the Vigenere cipher due to the keyword including part of the text to be encoded. However, like the Vigenere cipher, the Autokey cipher is vulnerable to frequency analysis and other cryptanalysis techniques, especially if the keyword is short or if there are patterns in the plaintext.
|
||||
@@ -26,7 +29,8 @@ cipher.mono.autokey.facts=
|
||||
|
||||
#Baconian
|
||||
cipher.mono.baconian.name=Baconian
|
||||
cipher.mono.baconian.description=The Baconian cipher, also known as the Baconian alphabet or Bacon's cipher, is a type of substitution cipher used for encoding and decoding messages. \
|
||||
cipher.mono.baconian.description=
|
||||
cipher.mono.baconian.explanation=The Baconian cipher, also known as the Baconian alphabet or Bacon's cipher, is a type of substitution cipher used for encoding and decoding messages. \
|
||||
In the Baconian cipher, each letter of the alphabet is replaced by a sequence of five characters, consisting of 'A' and 'B'. \
|
||||
These characters represent the binary encoding of the letter, where 'A' stands for one binary digit (usually 0) and 'B' stands for the other binary digit (usually 1). \
|
||||
During encoding I and J are generally encoded as the same letter. \
|
||||
@@ -37,12 +41,14 @@ cipher.mono.baconian.facts=It was developed by Sir Francis Bacon in the late 16t
|
||||
#TODO
|
||||
#Base X
|
||||
cipher.mono.basex.name=Base X
|
||||
cipher.mono.basex.description=Base X is an abstraction for Base 2, Base 16, etc. Base X uses the integer values for each character and displays them in the desired base.
|
||||
cipher.mono.basex.description=
|
||||
cipher.mono.basex.explanation=Base X is an abstraction for Base 2, Base 16, etc. Base X uses the integer values for each character and displays them in the desired base.
|
||||
cipher.mono.basex.facts=
|
||||
|
||||
#Beaufort
|
||||
cipher.mono.beaufort.name=Beaufort
|
||||
cipher.mono.beaufort.description=The Beaufort cipher is a type of substitution cipher similar to the Vigenere cipher but with a different method of encryption. \
|
||||
cipher.mono.beaufort.description=
|
||||
cipher.mono.beaufort.explanation=The Beaufort cipher is a type of substitution cipher similar to the Vigenere cipher but with a different method of encryption. \
|
||||
In the Beaufort cipher, encryption and decryption are performed by using a keyword to determine the amount of backward displacement within the alphabet for each letter of the text, unlike the Vigenere cipher, where the key is added. \
|
||||
The Beaufort cipher, like the Vigenere cipher, is vulnerable to frequency analysis and other cryptanalysis techniques, especially if the keyword is short or if there are patterns in the plaintext. \
|
||||
However, it provides some variation in encryption compared to the Vigenere cipher, which may offer slightly different cryptographic properties.
|
||||
@@ -50,7 +56,8 @@ cipher.mono.beaufort.facts=It was named after Sir Francis Beaufort, an Irish hyd
|
||||
|
||||
#Caesar
|
||||
cipher.mono.caesar.name=Caesar
|
||||
cipher.mono.caesar.description=The Caesar cipher is one of the simplest and most widely known encryption techniques. It's a type of substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet. \
|
||||
cipher.mono.caesar.description=
|
||||
cipher.mono.caesar.explanation=The Caesar cipher is one of the simplest and most widely known encryption techniques. It's a type of substitution cipher where each letter in the plaintext is shifted a certain number of places down or up the alphabet. \
|
||||
For encryption a shift value is used which determines how many letters forward each letter in the text should be shifted. \
|
||||
Decryption uses the same shift, but shifts each letter down rather than up. \
|
||||
The Caesar cipher is a special case of the substitution cipher with a fixed shift. While it's straightforward to implement and understand, it's also highly vulnerable to cryptanalysis, especially through frequency analysis. \
|
||||
@@ -59,7 +66,8 @@ cipher.mono.caesar.facts=The Caesar cipher, named after Julius Caesar who is sai
|
||||
|
||||
#One-Time Pad
|
||||
cipher.mono.onetimepad.name=One-Time Pad
|
||||
cipher.mono.onetimepad.description=A One-Time Pad cipher is a type of encryption technique that provides perfect secrecy when used correctly. The essence of a One-Time Pad cipher lies in the use of a randomly generated key that is at least as long as the message being encrypted. \
|
||||
cipher.mono.onetimepad.description=
|
||||
cipher.mono.onetimepad.explanation=A One-Time Pad cipher is a type of encryption technique that provides perfect secrecy when used correctly. The essence of a One-Time Pad cipher lies in the use of a randomly generated key that is at least as long as the message being encrypted. \
|
||||
The key is never reused and is kept completely secret between the sender and the recipient. Each character of the plaintext message is combined with the corresponding bit or character of the key using a the same shift as the Caesar cipher. \
|
||||
In a slightly less secure, but more practical key selection, the passage of a book can also be used. Preferably one with a good mix of many characters that would make frequency analysis more difficult. \
|
||||
When these principles are followed, the One-Time Pad provides perfect secrecy, meaning that the ciphertext reveals no information about the plaintext, even when the attacker has unlimited computational power. However, achieving and maintaining these conditions in practice can be extremely challenging, which limits the practical use of the One-Time Pad cipher.
|
||||
@@ -67,7 +75,8 @@ cipher.mono.onetimepad.facts=It was invented independently by Gilbert Vernam in
|
||||
|
||||
#Porta
|
||||
cipher.mono.porta.name=Porta
|
||||
cipher.mono.porta.description=The Porta cipher, also known as the Porta square or Portax cipher, is a variant of the Vigenere cipher and shares some similarities with it. \
|
||||
cipher.mono.porta.description=
|
||||
cipher.mono.porta.explanation=The Porta cipher, also known as the Porta square or Portax cipher, is a variant of the Vigenere cipher and shares some similarities with it. \
|
||||
In the Porta cipher, encryption and decryption are performed using a keyword and a tabula recta or Porta square. The Porta square is a table that consists of 26 rows and 26 columns, where each row represents the alphabet shifted by a certain number of positions. \
|
||||
The Porta square is constructed by shifting the letters of the alphabet by an amount determined by the keyword. \
|
||||
Each row of the square represents a different shift of the alphabet, with the first row being shifted by 0 positions, the second row by 1 position, the third row by 2 positions, and so on until the last row, which is shifted by 25 positions. \
|
||||
@@ -76,7 +85,8 @@ cipher.mono.porta.facts=It was invented by Giovanni Battista della Porta in the
|
||||
|
||||
#Substitution
|
||||
cipher.mono.substitution.name=Substitution
|
||||
cipher.mono.substitution.description=A substitution cipher is a method of encryption where each letter in the plaintext is replaced by another letter or symbol according to a predetermined set of rules. In other words, it substitutes each plaintext character with another character. \
|
||||
cipher.mono.substitution.description=
|
||||
cipher.mono.substitution.explanation=A substitution cipher is a method of encryption where each letter in the plaintext is replaced by another letter or symbol according to a predetermined set of rules. In other words, it substitutes each plaintext character with another character. \
|
||||
Substitution ciphers are among the simplest forms of encryption and have been used throughout history for secret communication. \
|
||||
However, they are generally less secure compared to modern encryption techniques and are vulnerable to various cryptanalysis methods, such as frequency analysis, which exploits patterns in the ciphertext to reveal information about the plaintext. \
|
||||
Despite their vulnerabilities, substitution ciphers are often used in educational settings to introduce basic concepts of cryptography.
|
||||
@@ -84,7 +94,8 @@ cipher.mono.substitution.facts=
|
||||
|
||||
#Vigenere
|
||||
cipher.mono.vigenere.name=Vigenere
|
||||
cipher.mono.vigenere.description=The Vigenere cipher adds more security compared to simple monoalphabetic substitution ciphers like the Caesar cipher. \
|
||||
cipher.mono.vigenere.description=
|
||||
cipher.mono.vigenere.explanation=The Vigenere cipher adds more security compared to simple monoalphabetic substitution ciphers like the Caesar cipher. \
|
||||
In the Vigenere cipher, encryption and decryption are performed using a keyword or keyphrase. The key is used to determine the shift applied to each letter in the plaintext, with different parts of the key determining different shifts. \
|
||||
Decryption is performed by applying the reverse process. Given the ciphertext and the keyword, the original plaintext can be recovered. \ The Vigenere cipher provides stronger encryption compared to simple substitution ciphers because it uses multiple Caesar ciphers in a repeating pattern determined by the keyword. \
|
||||
However, it is still vulnerable to frequency analysis and other cryptanalysis techniques, especially if the keyword is short or if there are patterns in the plaintext. \Despite its vulnerabilities, the Vigenere cipher was considered unbreakable for centuries and was widely used for secure communication.
|
||||
@@ -94,7 +105,8 @@ cipher.mono.vigenere.facts=It was invented by Giovan Battista Bellaso in the 16t
|
||||
#Poly-Substitution
|
||||
#Bifid
|
||||
cipher.poly.bifid.name=Bifid
|
||||
cipher.poly.bifid.description=The Bifid cipher is a type of polyalphabetic substitution cipher that combines elements of both transposition and substitution. \
|
||||
cipher.poly.bifid.description=
|
||||
cipher.poly.bifid.explanation=The Bifid cipher is a type of polyalphabetic substitution cipher that combines elements of both transposition and substitution. \
|
||||
It was invented by Felix Delastelle in 1901 and was considered one of the strongest ciphers at the time due to its complexity. \
|
||||
Encryption is done by creating a 5x5 grid, known as the Polybius square, is created. The letters of the alphabet (excluding 'J' in most cases) are arranged in the grid, typically starting with 'A' and ending with 'Z', omitting 'J'. \
|
||||
Each letter of the plaintext is first converted into its corresponding row and column numbers in the grid. For example, the letter 'C' may correspond to the row 1, column 3. These numerical representations are then combined into pairs of numbers. \
|
||||
@@ -107,7 +119,8 @@ cipher.poly.bifid.facts=
|
||||
|
||||
#Columnar
|
||||
cipher.poly.columnar.name=Columnar
|
||||
cipher.poly.columnar.description=The Columnar cipher, also known as the Columnar Transposition cipher, is a type of transposition cipher where the characters of the plaintext are rearranged according to a specific method based on the columns of a grid. \
|
||||
cipher.poly.columnar.description=
|
||||
cipher.poly.columnar.explanation=The Columnar cipher, also known as the Columnar Transposition cipher, is a type of transposition cipher where the characters of the plaintext are rearranged according to a specific method based on the columns of a grid. \
|
||||
Start by writing the plaintext message into a grid, row by row, with a fixed number of columns. The number of columns is determined by the key, which is a word or a sequence of letters chosen by the sender. \
|
||||
Arrange the columns of the grid in alphabetical order based on the letters of the key. For example, if the key is "KEYWORD", arrange the columns of the grid in the order of the letters in "KEYWORD". \
|
||||
Read the ciphertext from the grid by going column by column, starting with the column that corresponds to the first letter of the key, then the second letter of the key, and so on, until all columns have been read. \
|
||||
@@ -116,7 +129,8 @@ cipher.poly.columnar.facts=
|
||||
|
||||
#Hill
|
||||
cipher.poly.hill.name=Hill
|
||||
cipher.poly.hill.description=The Hill cipher is a type of polygraphic substitution cipher based on linear algebra and is one of the earliest known examples of a block cipher. The Hill cipher operates on blocks of plaintext letters and uses matrix multiplication to encrypt and decrypt messages. \
|
||||
cipher.poly.hill.description=
|
||||
cipher.poly.hill.explanation=The Hill cipher is a type of polygraphic substitution cipher based on linear algebra and is one of the earliest known examples of a block cipher. The Hill cipher operates on blocks of plaintext letters and uses matrix multiplication to encrypt and decrypt messages. \
|
||||
The encryption key in the Hill cipher is a square matrix called the encryption matrix. The size of the matrix (i.e., the number of rows and columns) depends on the key length and the block size of the plaintext. The determinant of the encryption matrix must be relatively prime to the size of the alphabet used (typically 26 for English text) to ensure that the encryption matrix is invertible. \
|
||||
To encrypt a message, the plaintext is divided into blocks of letters, each block matching the size of the encryption matrix. Each block is then represented as a column vector, with each element of the vector representing the numerical value of a letter in the plaintext. The encryption matrix is multiplied by each column vector of plaintext letters modulo the size of the alphabet. The resulting matrix of encrypted numerical values is then converted back into ciphertext letters. \
|
||||
Decryption is performed by multiplying the ciphertext column vectors by the inverse of the encryption matrix modulo the size of the alphabet. The resulting numerical values are converted back into plaintext letters. \
|
||||
@@ -126,14 +140,16 @@ cipher.poly.hill.facts=It was invented by Lester S. Hill in 1929.
|
||||
|
||||
#Morse
|
||||
cipher.poly.morse.name=Morse Code
|
||||
cipher.poly.morse.description=Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks. Morse code encodes characters (letters, numbers, and punctuation) as sequences of dots (short signals) and dashes (long signals) arranged in specific patterns. \
|
||||
cipher.poly.morse.description=
|
||||
cipher.poly.morse.explanation=Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks. Morse code encodes characters (letters, numbers, and punctuation) as sequences of dots (short signals) and dashes (long signals) arranged in specific patterns. \
|
||||
The basic elemens of Morse Code are dots and dashes. Each letter, number, or punctuation mark is represented by a unique combination of dots and dashes. Numbers and punctuation marks also have their own Morse code representations. \
|
||||
Morse code has been widely used in various forms of communication, including telegraphy, radio communication, aviation, and navigation. Despite advances in technology, Morse code remains relevant today, particularly in emergency communication, amateur radio, and certain military applications. It is also used by some individuals for its simplicity and effectiveness in situations where other forms of communication may be unreliable or unavailable.
|
||||
cipher.poly.morse.facts=It was developed in the early 19th century by Samuel Morse and Alfred Vail as a means of long-distance communication using telegraphy.
|
||||
|
||||
#Playfair
|
||||
cipher.poly.playfair.name=Playfair
|
||||
cipher.poly.playfair.description=The Playfair cipher is a type of digraph substitution cipher. It was used for secure communication in the early days of telegraphy. \
|
||||
cipher.poly.playfair.description=
|
||||
cipher.poly.playfair.explanation=The Playfair cipher is a type of digraph substitution cipher. It was used for secure communication in the early days of telegraphy. \
|
||||
To encode start with a 5x5 grid, known as the Playfair square. The letters of the alphabet (usually excluding 'J', which is combined with 'I') are written into the grid in order, omitting any duplicates. Choose a keyword or keyphrase and use it to fill in the rest of the grid, omitting any duplicate letters. \
|
||||
To encrypt a message, split the plaintext into pairs of letters (digraphs). If the pair consists of two identical letters, insert a filler letter (often 'X') between them. For each digraph, apply the following rules:\n\
|
||||
If both letters are in the same row of the grid, replace each letter with the letter to its right (wrapping around to the beginning of the row if necessary).\n\
|
||||
@@ -146,7 +162,8 @@ cipher.poly.playfair.facts=It was invented by Charles Wheatstone and popularized
|
||||
|
||||
#Polybius
|
||||
cipher.poly.polybius.name=Polybius
|
||||
cipher.poly.polybius.description=The Polybius Square cipher, also known as the Polybius checkerboard, is a method of encryption that replaces pairs of letters with coordinates from a grid. \
|
||||
cipher.poly.polybius.description=
|
||||
cipher.poly.polybius.explanation=The Polybius Square cipher, also known as the Polybius checkerboard, is a method of encryption that replaces pairs of letters with coordinates from a grid. \
|
||||
The cipher typically uses a 5x5 grid, with the letters of the alphabet (usually excluding 'J') arranged within it. Each letter is represented by its row and column coordinates in the grid. For example, if 'A' is in the first row and first column, it could be represented as "11", and if 'B' is in the first row and second column, it could be represented as "12". \
|
||||
In this grid, each letter is represented by its row and column coordinates. For instance, 'A' is at coordinates (1,1), so it's encoded as "11", 'B' is at (1,2), so it's encoded as "12", and so on. \
|
||||
To encrypt a message using the Polybius Square cipher, each letter is first located in the grid, and then its coordinates are noted down. These coordinates form the encrypted message. To decrypt the message, the process is reversed: each pair of coordinates is converted back into the corresponding letter from the grid. \
|
||||
@@ -155,7 +172,8 @@ cipher.poly.polybius.facts= It was named after the ancient Greek historian Polyb
|
||||
|
||||
#Rail Fence
|
||||
cipher.poly.railfence.name=Rail Fence
|
||||
cipher.poly.railfence.description=The Rail Fence cipher is a transposition cipher that works by writing the plaintext in a zigzag pattern across a number of "rails" or "fences," and then reading off the ciphertext from the pattern formed by the rails. \
|
||||
cipher.poly.railfence.description=
|
||||
cipher.poly.railfence.explanation=The Rail Fence cipher is a transposition cipher that works by writing the plaintext in a zigzag pattern across a number of "rails" or "fences," and then reading off the ciphertext from the pattern formed by the rails. \
|
||||
We first write the message in a zigzag pattern across 3 "rails." Then we read off the ciphertext by concatenating the characters from each rail. So, "HELLO WORLD" is encrypted to "HOLL ELWRLOL" using the Rail Fence cipher with 3 rails. \
|
||||
To decrypt a Rail Fence ciphertext, the process is reversed. Write the ciphertext in a zigzag pattern across the rails. Read off the plaintext from the pattern formed by the rails. \
|
||||
The Rail Fence cipher is relatively easy to implement and understand, but it's not very secure against modern cryptanalysis techniques. It's often used as a teaching tool rather than for serious encryption.
|
||||
@@ -163,7 +181,8 @@ cipher.poly.railfence.facts=
|
||||
|
||||
#Trifid
|
||||
cipher.poly.trifid.name=Trifid
|
||||
cipher.poly.trifid.description=The trifid cipher is a polygraphic substitution cipher and is an extention of the Bifid cipher. \
|
||||
cipher.poly.trifid.description=
|
||||
cipher.poly.trifid.explanation=The trifid cipher is a polygraphic substitution cipher and is an extention of the Bifid cipher. \
|
||||
To encode, a key matrix is generated, typically a permutation of the alphabet plus some additional symbols. Each letter of the plaintext is converted into its corresponding coordinates in the 3x3x3 grid. For example, if the letter is 'A', it could be represented as (1,1,1). \
|
||||
The coordinates are then rearranged according to the key matrix and teh plaintext coordinate is (1,1,1), in might be rearranged to 2,3,1 based on the position of 'A' in the key matrix. The rearranged coordinates are converted back into letters. \
|
||||
The process is reversed. The ciphertext is first converted into coordinates, rearranged back using the key matrix, and then converted back into plaintext. \
|
||||
@@ -174,7 +193,8 @@ cipher.poly.trifid.facts=It was invented by Felix Delastelle in 1901.
|
||||
#Combination
|
||||
#ADFGVX
|
||||
cipher.combination.adfgvx.name=ADFGVX
|
||||
cipher.combination.adfgvx.description=The ADFGVX cipher is a fractionating transposition cipher and was named after the six letters used in the cipher. \
|
||||
cipher.combination.adfgvx.description=
|
||||
cipher.combination.adfgvx.explanation=The ADFGVX cipher is a fractionating transposition cipher and was named after the six letters used in the cipher. \
|
||||
This cipher was notable for its use of a 6x6 grid to encode letters, making it more complex than many other ciphers of its time. \
|
||||
To encode a 6x6 grid, usually called the Polybius square, is created. The rows and columns are labeled with the letters A, D, F, G, V, and X. \
|
||||
Each letter of the plaintext is replaced with its corresponding pair of letters from the grid. For example, if the letter 'C' corresponds to 'FD', then 'C' is replaced with 'FD' in the ciphertext. \
|
||||
@@ -187,7 +207,8 @@ It was used extensively by the German Army during World War I for secure communi
|
||||
|
||||
#ADFGX
|
||||
cipher.combination.adfgx.name=ADFGX
|
||||
cipher.combination.adfgx.description=The ADFGX cipher is a variant of the ADFGVX cipher. Both the ADFGX and ADFGVX ciphers are similar in structure and operation, but the ADFGX cipher uses a 5x5 grid instead of a 6x6 grid. \
|
||||
cipher.combination.adfgx.description=
|
||||
cipher.combination.adfgx.explanation=The ADFGX cipher is a variant of the ADFGVX cipher. Both the ADFGX and ADFGVX ciphers are similar in structure and operation, but the ADFGX cipher uses a 5x5 grid instead of a 6x6 grid. \
|
||||
A 5x5 grid, usually called the Polybius square, is created. The rows and columns are labeled with the letters A, D, F, G, and X. \
|
||||
Each letter of the plaintext is replaced with its corresponding pair of letters from the grid. For example, if the letter 'C' corresponds to 'DG', then 'C' is replaced with 'DG' in the ciphertext. \
|
||||
The resulting fractionated ciphertext is then encrypted using a keyword or keyphrase, similar to the ADFGVX cipher. This typically involves a transposition step, such as columnar transposition, to rearrange the letters of the fractionated ciphertext. \
|
||||
|
||||
Reference in New Issue
Block a user