-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Windows-CPP/beta
BugFix - Image Index Fix | v0.6.1-b | wint-stand
- Loading branch information
Showing
11 changed files
with
129 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class EncDec(): | ||
'Class that houses the main Encryption and Decryption methods for LockBox. Usage: `EncDec.crypt(key, location)`, `EncDecName.decrypt(key, location)`' | ||
|
||
def __init__(self, keyIn, locIn): | ||
'Init class for EncDec.' | ||
self.__key__ = keyIn | ||
self.__location__ = locIn | ||
|
||
def updateDat(self, keyIn, locIn): | ||
'Updates location and key for EncDec.' | ||
self.__key__ = keyIn | ||
self.__location__ = locIn | ||
|
||
def crypt(self, __key__): | ||
'The main encryption algorithym for LockBox.' | ||
|
||
def decrypt(self, __key__): | ||
'The main decryption algorithym for LockBox.' |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from os import system | ||
|
||
def cls(): | ||
'Clears the CLI.' | ||
system("cls") |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
imgLoc = { | ||
0:"./images/1.jpg", | ||
1:"./images/2.jpg", | ||
2:"./images/3.jpg" | ||
} | ||
|
||
genInf = { | ||
"build":"wint-standalone", | ||
"version":"v0.6.1-b" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# LockBox - A Personal Server Security Solution | ||
|
||
## Design | ||
|
||
### What it Does | ||
|
||
LockBox is an encryption method that is designed to run standalone or as a method inside of another Python program. | ||
It takes a string-based input (Input *can* be an `int`, but will return as an `str`). | ||
This is taken through our encryption algorithim to try and make data secure in a 256-bit format. | ||
|
||
### How it Works | ||
|
||
LockBox first generates random numebrs as best as it can, several times over again to find a true random number. | ||
It then looks at pixels of an image, and finds random pixels out of a random image out of a random selection of images- Really, really random. | ||
Using these found pixels, it takes their RGB values and generates a key out of those colour values, as well as more random numbers. | ||
Through this key, it encrypts your data into a long and secure string, only decryptable via the same key. |
This file was deleted.
Oops, something went wrong.