How to use the ciphey.LanguageChecker.brandon.Brandon function in ciphey

To help you get started, weโ€™ve selected a few ciphey examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brandonskerritt / Ciphey / tests / test_encoding.py View on Github external
def test_hex_mixed_spaces_yes(self):
        lc = Brandon(config)
        ep = EncodingParent(lc)
        a = "68656c6c6f206f 6c 69 76 69 61 20 69 20 72 65 61 6c 6c 79 20 6c 69 6b 65 20 79 6f 75 72 20 64 6f 67"
        a = a.replace(" ", "")
        result = ep.decrypt(a)
        self.assertEqual(result["IsPlaintext?"], True)
github brandonskerritt / Ciphey / tests / dict.py View on Github external
def test_english_yes_two(self):
        dc = Brandon()
        result = dc.confirmlanguage(
            "hello my name is brandon and this is a normal english text timtable fuse kindle hormone",
            "English",
        )
        self.assertEqual(result, True)
github brandonskerritt / Ciphey / tests / test_encoding.py View on Github external
def test_base64_spaces_yes(self):
        lc = Brandon(config)
        ep = EncodingParent(lc)
        result = ep.decrypt("SGVsbG8gSSBsaWtlIGRvZ3MgYW5kIGNhdHM=")
        self.assertEqual(result["IsPlaintext?"], True)
github brandonskerritt / Ciphey / tests / dict.py View on Github external
def test_english_perfect(self):
        dc = Brandon()
        result = dc.confirmlanguage(
            "Archimedes famously said: โ€œGive me a lever long enough and a fulcrum on which to place it, and I shall move the world.โ€ But what we are talking about here is not physical leverage. It is the leverage of ideas. When you create content, people can access your knowledge without taking your time. You no longer need to sell knowledge by the hour. Your ideas are the most valuable currency in a knowledge-driven economy. Just as an investment account allows your money to grow day and night without your involvement, content does the same with your ideas. Until recently, the average person wasnโ€™t able to publish and distribute their ideas at a reasonable cost. But on the Internet, anybody, in any corner of the world, in any time zone, can access your best thinking. 24 hours a day. 7 days a week. 365 days a year. When you publish ideas, you create your own โ€œSerendipity Vehicleโ€ โ€“ a magnet for ideas and people and opportunities from potentially every corner of the globe. If your ideas resonate with people, people will discover you and bring you unexpected opportunities. Theyโ€™ll open doors you never knew existed.",
            "English",
        )
        self.assertEqual(result, True)
github brandonskerritt / Ciphey / tests / test_encoding.py View on Github external
def test_base32(self):

        # logger.configure()
        # logger.add(sink=sys.stderr, level="TRACE", colorize=True)
        # logger.opt(colors=True)
        # logger.error(f"""Debug level set to {config["debug"]}""")

        lc = Brandon(config)
        ep = EncodingParent(lc)
        a = "NBSWY3DPEBWXSIDOMFWWKIDJOMQGEZLF"
        result = ep.decrypt(a)
        self.assertEqual(result["IsPlaintext?"], True)
github brandonskerritt / Ciphey / tests / dict.py View on Github external
def test_english_yes(self):
        dc = Brandon()
        result = dc.confirmlanguage(
            "hello again my friend this is my name and I like dogs!", "English"
        )
        self.assertEqual(result, True)
github brandonskerritt / Ciphey / tests / dict.py View on Github external
def test_english_false_two(self):
        dc = Brandon()
        result = dc.confirmlanguage(
            "pink jdajj red 9jjidasjp october whisky odiajdq", "English"
        )
        self.assertEqual(result, True)
github brandonskerritt / Ciphey / tests / dict.py View on Github external
def test_english_false(self):
        dc = Brandon()
        result = dc.confirmlanguage("jdajj kop9u0r 9jjidasjp", "English")
        self.assertEqual(result, False)
github brandonskerritt / Ciphey / tests / test_encoding.py View on Github external
def test_hex_spaces_yes(self):
        lc = Brandon(config)
        ep = EncodingParent(lc)
        result = ep.decrypt(
            "68 65 6c 6c 6f 20 6f 6c 69 76 69 61 20 69 20 72 65 61 6c 6c 79 20 6c 69 6b 65 20 79 6f 75 72 20 64 6f 67"
        )
        self.assertEqual(result["IsPlaintext?"], True)
github brandonskerritt / Ciphey / tests / test_encoding.py View on Github external
def test_binary_spaces_yes(self):
        lc = Brandon(config)
        ep = EncodingParent(lc)
        result = ep.decrypt(
            "01001000 01100101 01101100 01101100 01101111 00100000 01001001 00100000 01101100 01101001 01101011 01100101 00100000 01100100 01101111 01100111 01110011 00100000 01100001 01101110 01100100 00100000 01100011 01100001 01110100 01110011"
        )
        self.assertEqual(result["IsPlaintext?"], True)