This file contains hidden or 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
| import math | |
| import secrets | |
| import hashlib | |
| # https://tools.ietf.org/id/draft-ietf-lamps-cms-shakes-08.html#rsa-sigs | |
| OAEP_RANDOM_ORACLE = hashlib.sha256 | |
This file contains hidden or 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
| import array | |
| import hashlib | |
| import secrets | |
| import struct | |
| __all__ = ['ChaCha'] |
This file contains hidden or 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
| #!python3 | |
| # coding: utf-8 | |
| import os | |
| import datetime | |
| import itertools | |
| from tkinter import * | |
| from tkinter import _tkinter # for errors | |
| from tkinter.ttk import * |
This file contains hidden or 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
| import socket | |
| import random | |
| # hardcoded index.html | |
| homepage = ''' | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> |
This file contains hidden or 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
| from tkinter import * | |
| from tkinter.ttk import * | |
| class App(Frame): | |
| def __init__(self, *args, **kwargs): | |
| super().__init__(*args, **kwargs) | |
| self.count_failed_logins = 0 | |
| self.logged_in_user = None | |
| # sits at bottom of login screen; invisible until invalid login | |
| self.error_label = Label(self, foreground='red') |
This file contains hidden or 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
| import string | |
| import itertools | |
| alphabet = string.ascii_uppercase | |
| def vigenere_encrypt(p, k): | |
| return alphabet[(ord(p) + ord(k)) % len(alphabet)] | |
| def vigenere_decrypt(c, k): |
This file contains hidden or 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
| import warnings | |
| class BFMachine(): | |
| def __init__(self, source_code): | |
| self.source_code = source_code | |
| self._compiled = False | |
This file contains hidden or 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
| A:Α Ꭺ A | |
| a:a α а | |
| B:Β В | |
| b:Ь b | |
| C:С Ꮯ | |
| c:c ϲ с | |
| D:Ꭰ | |
| d:ԁ | |
| E:Ε Е | |
| e:е |
This file contains hidden or 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
| import itertools | |
| def bit_stream(s, bit_len=7): | |
| s = s.encode('ascii') | |
| for c in s: | |
| c = bin(c)[2:].zfill(bit_len) | |
| for b in c: |
This file contains hidden or 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
| begin 666 - | |
| M'XL( !<VY5X"_[4[:W?;-K+?]2M@Y^PAE<B,9,=.XU9W-VF=U-LTZ<;>Y.:F | |
| M7AZ0!"58%,F"9&2UI__]S@ @";XL.\WJ@RT1@YG!8-X '^P]+C+QV./Q8Q9_ | |
| M)NDV7R;QT>@!\9. QXM30C.?\]$(GGR@(H9'>^1-DA^\]<(B\VG. I*E"8^8 | |
| MR A=,AKLC7H_#\CS."!IDF7<BQAA:X\*"C_B1;0E'@W@[T;P/&<Q4F:.X]R& | |
| M)TX :KUF<9X1QO,E$X-D+PL1 P%_13P6)H(1GEL9R9.$1,#]WN"\<[*!]<+R | |
| MMDDQ!,77:2)RDF3EMVQ;?;W.DKC\+F@<).ORET<S=O*D_+6DV3+B7H6!^8+E | |
| M%1:>,P&\1AE0R\7V=$3@$XID3?(5CV&0:,"'(W;CLS0GY_+WF1")4-"I $#; | |
| M2B,&= F/LYQ&435="R45B<\8[K@UEK,$Y0!]L<URMCZ[X?EH9%)U\GQ54VZ, | |
| M!+ ]U<AH=/'\_9G[\OSU&9D3*Z.?60BZ8HU^?GYQ>?;._>GL(SSWMCG+',2R |