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
/** | |
* MIT License | |
* | |
* Copyright (c) Sep 2019, Samuel Robert Belliveau | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
/** | |
* MIT License | |
* | |
* Copyright (c) 2021, Samuel Robert Belliveau | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
from numpy import uint32 | |
from numpy import uint64 | |
from numpy import seterr as set_numpy_err | |
from numpy import geterr as get_numpy_err | |
class ChaCha: | |
class ByteSizeError(ValueError): | |
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
import socket | |
import tkinter as tk | |
import time | |
import _thread as thread | |
from hashlib import blake2b | |
# Server Constants | |
STRING_ENCODING = 'utf-8' | |
# Used so the encryption can keep track of messages |
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
from numpy import uint32 | |
from numpy import uint64 | |
from numpy import geterr | |
from numpy import seterr | |
class sha1: | |
STARTING_VALUES = [ | |
uint32(0x67452301), | |
uint32(0xEFCDAB89), |
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
from numpy import uint32 | |
from numpy import uint64 | |
from numpy import geterr | |
from numpy import seterr | |
class sha256: | |
STARTING_VALUES = [ | |
uint32(0x6a09e667), | |
uint32(0xbb67ae85), |
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
#ifndef XOSHIRO_256_RNG_ALGORITHM | |
#define XOSHIRO_256_RNG_ALGORITHM | |
#include <random> | |
#include <cstdint> | |
#include <limits> | |
namespace xoshiro256 | |
{ | |
class xoshiro256 |
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
#include <SFML/Graphics.hpp> | |
#include <cstdlib> | |
#include <cmath> | |
const static float height = 720; | |
const static float width = 1280; | |
const static float pHeight = 12; | |
const static float pWidth = 100; |