-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π
Commit Sat, 18 Sep 2021 19:01:41
β¨ otp_crib_drag in cypto extras β¨ ChepyLite class ποΈ more lazy imports β tests added/updated
- Loading branch information
Showing
5 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
from .modules.aritmeticlogic import AritmeticLogic | ||
from .modules.compression import Compression | ||
from .modules.dataformat import DataFormat | ||
from .modules.datetimemodule import DateTime | ||
from .modules.encryptionencoding import EncryptionEncoding | ||
from .modules.extractors import Extractors | ||
from .modules.hashing import Hashing | ||
from .modules.language import Language | ||
from .modules.links import Links | ||
from .modules.multimedia import Multimedia | ||
from .modules.networking import Networking | ||
from .modules.other import Other | ||
from .modules.publickey import Publickey | ||
from .modules.search import Search | ||
from .modules.utils import Utils | ||
|
||
class ChepyLite( | ||
AritmeticLogic | ||
AritmeticLogic, | ||
Compression, | ||
DataFormat, | ||
DateTime, | ||
EncryptionEncoding, | ||
Extractors, | ||
Hashing, | ||
Language, | ||
Links, | ||
Networking, | ||
Other, | ||
Publickey, | ||
Search, | ||
Utils, | ||
): | ||
"""Chepy Lite class. Chepy lite is a lightweight version of Chepy which uses | ||
very little outside dependencies making it much faster to load than Chepy core. | ||
"""Chepy Lite class. Chepy lite is a lightweight version of Chepy which offers | ||
most of the core functionalities of Chepy, but without any extensions or extra | ||
modules. This is so that Chepy load time can be faster. | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
from chepy.extras.crypto_extras import * | ||
from chepy.extras.crypto_extras import one_time_pad_crib | ||
|
||
|
||
def test_one_time_pad_crib(): | ||
assert ( | ||
one_time_pad_crib( | ||
"51060328ac104b70881b267fb254d7914948e697aff2ce1c07c91c51b4ff2a172b6477c7e006", | ||
"560b032eb6481826df19237ce403d7c34c4db194fff59a4f559a4d09b6fa72157a642797e31a", | ||
b"a" * 38, | ||
)[0] | ||
== "flag{9276cdb76a3dd6b1f523209cd9c0a11b}" | ||
) |