Skip to content

Commit 3b493dc

Browse files
committed
Add files via upload
core structure core structure minor changes Actions class setup and other changes gitignore chnage Delete .DS_Store minor changes and small implementations . . Create LICENSE implementation of testing and packageing m.m . Delete .cspell directory actions and testing setup done . . . . . . Update README.md test . . . . . . . . . small updates minor fix . starting on documentation . . Delete build/lib/AES_Module directory base functions finished implementing . New front page for documentation made update to documentation formatting setting up some things and did some test small chnages to front page and fromat for headers minor chnages to formatting small updates and changes small fix half implementation of key expantion new implementation of key expnasion for 192, 256 New key schedule with less messy and cleaner code A atempt to implement the encryption rounds Full implementation of encryption rounds and tests Decryption rounds and test implemented and working enc and dec tested and first trial implementation minor text update minor added sentence . . minor document chnage so command is correct implemented working padding setup removed unnessecary functions New test for ecb encryption and decryption setup removed unnessecary varibles in test file Update README.md Dev experimental (#19) Added working CBC and test of encryption visualisation * First test on how to visualize data * new visualization method to show weakness of ecb * sucessfull cbc implementation but no test yet * generated a third image for comparison in report * minor fix * CBC implementation debugged and new tests setup new images for visualization Update issue templates Create python-publish.yml Update python-publish.yml Update python-publish.yml Update python-publish.yml Update python-publish.yml Dev (#22) * new test setup strucutre and clean up * large changes to structure, setup, publish ready Update README.md Update pyproject.toml Update __init__.py Dev (#23) * new test setup strucutre and clean up * large changes to structure, setup, publish ready Update README.md Create codeql-analysis.yml readme fix Update README.md Dev (#26) * Update __main__.py * structural changes * almost implemented PCBC * update * fixed missing line * changed python build name * new actions setup * PCBC setup and ready * implemented secure key and iv entry m.m * new adaptive progress bar * fixed error in progrss bar implmentation * new build fix Update README.md fix Dev (#27) * Update __main__.py * structural changes * almost implemented PCBC * update * fixed missing line * changed python build name * new actions setup * PCBC setup and ready * implemented secure key and iv entry m.m * new adaptive progress bar * fixed error in progrss bar implmentation * new build * fix * fix * fixed text issues small changes to terminal size fetching Update test.yml rename fix name change completed fix of tox finally finished name change update to progress bar small optimization fix to text displaying comment reformatting update . update to version number
1 parent e2258cc commit 3b493dc

File tree

86 files changed

+23432
-2068
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+23432
-2068
lines changed

.DS_Store

-6 KB
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "core" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "core" ]
20+
schedule:
21+
- cron: '36 17 * * 2'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'python' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2

.github/workflows/core.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# This workflow will upload a Python Package using Twine when a push or pull-request pushed thru to the core branch.
2+
3+
name: Core Build & Publish
4+
5+
on:
6+
push:
7+
branches:
8+
- core
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
validate:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
python-version: ['3.9', '3.10']
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Set up python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v3
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run:
29+
python -m pip install --upgrade pip
30+
pip install tox tox-gh-actions
31+
- name: Test
32+
run: tox
33+
34+
build:
35+
needs:
36+
- validate
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@v3
41+
- name: Set up Python
42+
uses: actions/setup-python@v3
43+
with:
44+
python-version: '3.x'
45+
- name: Install dependencies
46+
run: |
47+
python -m pip install --upgrade pip
48+
pip install build
49+
- name: Building package
50+
run: python -m build
51+
52+
release:
53+
needs:
54+
- build
55+
- validate
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- uses: actions/checkout@v3
60+
- name: Set up Python
61+
uses: actions/setup-python@v3
62+
with:
63+
python-version: '3.x'
64+
- name: Create release
65+
uses: 'marvinpinto/action-automatic-releases@latest'
66+
with:
67+
repo_token: ${{ secrets.RELEASE_TOKEN }}
68+
automatic_release_tag: v1.1.6
69+
prerelease: false
70+
title: v1.1.6
71+
files: |
72+
dist/*
73+
74+
deploy:
75+
needs:
76+
- release
77+
runs-on: ubuntu-latest
78+
79+
steps:
80+
- uses: actions/checkout@v3
81+
- name: Set up Python
82+
uses: actions/setup-python@v3
83+
with:
84+
python-version: '3.x'
85+
- name: Publish package
86+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
87+
with:
88+
user: __token__
89+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
pull_request:
7+
branches: [core]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
python-version: ['3.9', '3.10']
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run:
28+
python -m pip install --upgrade pip
29+
pip install tox tox-gh-actions
30+
- name: Test with tox
31+
run: tox

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
.Ds_store
12
__pycache__/
23
encryption_test/
34
.vscode/
45
secret.key
56
*.pyc
67
.idea
7-
test.txt*
8+
test.txt*
9+
.cspell
10+
.DS_Store
11+
*_cache
12+
.tox
13+
htmlcov
14+
.coverage
15+
build

AES.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

Analyze.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

Debugg_test.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)