Metadata-Version: 2.4
Name: secure_python
Version: 1.3.4
Summary: A framework for encoding and decoding text using custom mappings.
Author: Soundhearddev
License: MIT License
        
        Copyright (c) 2023 [Your Name]
        
        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 furnished to do so, subject to the following conditions:
        
        1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        2. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pycryptodome
Dynamic: license-file


# Seucre Python Framework
A Framework for encryption of python files

## Overview

Secure Python Framework provides a set of tools for encoding and decoding text using a custom mapping system.
It can be uses to encrypt python files with .py (so far) and decrypt them afterwards.
## Features

- Encrypt files or plain text  
- Decrypt an encrypted file into a Python file  
- Decrypt an encrypted file into a string (e.g. for use with `exec()`)  
- Supports simultaneous encryption/decryption of unlimited files  



<details>
  <summary>Click here to see all possibilities (not kidding)</summary>  

650233622935023377522176307018470689070636775142753302083841996047533479035062447725935530427198265062763318601919103186674068314371816240483050065442184206772116715962731309131178236778376482042591770975581850270424380721862769571142435706527737468357443985928880557408855080639368930346606780409076802933737626886970739317488374310161975916295189350910688442034226973691770144379750459994948210495256449649561345495802556580467492262329471539564239650101548398503657643556257908401901666864791759829911469742150661134168781314485230129236466048475397691678118046843973406618081766195711893413204475506300818046885261057145776355951159383759129469405712851137504342085365912016848823998787250605805239315633753882528957297182462603515808975935212315848577273665294260311353620242204641390013385385894550495110774181060235982906002095793232711602987243947342686320055682034506522500143568388256554864303193904217182873962830465920843984515065673430467404628142059780769050088024729113953465048421311054609605564171594948412095914472014246455686020917128020207781947270287625993391746011423228899727795740200541262801858191053666184284373790206613269709995220522752297670027614416159873358400407261562126627653835563981003921489499269376673219651871553530214208071161075647727688411970338691443673792860048795409047404579276237131769562717664586609888012956806811846196882362960831919548422102642290281487342910349517460632269478018786159886124770248137601881959748114184316355024827357416299119290307438833272470698352931212363664722126531848258952805181496417835600100593559519208210959862682254777066276877726479225175424477713833408922775062839096105774671194358964480385654461086299723611102301926851289601384655312162655141694880735906584827945354667172274790550320029810681173440382046069011015855926462552744387407144908488253498062703927611903843351573854122978283792968878201477250541311646285645004430437007839295274743332519716120291612758483979300348971395101662990829878790478891309238787477442321422908140371972215984488797759122335612499526010862333197001703087223328667952686478149190334719963956120351768079903900883037648247405847543670266838765433695953742398898227427039177750648394699792960669757257068094031359874300763583690527920357002815248733659896504256549961690157346818678250163977572367254612665907159706266349546848463332708365408716276079026966020837655842157272294564169082432247583821793512515723463628742797233831545432337632674142037743455726036814357674434296718571107777987885160732353141325403471110294527219755594269709690522892856295659443282427156000089077114881332788369745845962085130441371090058537906755326411450625826530527574692436200102193538747150914895625878098221092134086083628274974360521405373149395012525712248899047009695596283188502166393501279501728598224692253497082581600238306093348257842521905520835261054958222662816173872578999222744128603786935065808681152996542126275132137137839766711850546065651805794543027916743501794062374683438484726955246681331141940503694673138306569733715685022391896346311716554743740860694272855700139202757966714522807641041384614052190302515064135868777736181788944592061362885359332561811134404307344170029161163486533549204947825870533395710109345977743605230768186387334730815639829938019354544115710918634879903007423215741862185435597159491288680426020633055577124658871957297977157399137924259802313790785755195651323624863179065096012023169266245528144501138279589427078867135321922311267740970784156130621093797643294459791823181242254436324104868246080039040630061084066495285751477287151807083596880526521247096369759757691172779302067542681363643301717618481473310331639156131438774304938223107743657607711520375822341368161632067925118393289987592158096643694958573015683533014765521887222405100299067062538931309592353527456734590947462730973451957571145005992108152091399759526783551557670354618936103887766577310175230803838218631554001945363985793799020861173932403964701815116390256070311478124317882867681145448691298813693500819733406701925539719086796297765200026967954903601239951413341861354513391404598322112368457186448855550194854798755179690412625468746468359741419210485895033174783405484386466253137046403341268477444553534723363880416617330652530915642208870241520295757503568911835093232356146447106438971388687400892222746288271736769355333170336348629135930971527597952863907228234016615171374136096715979630655999245452898870939363463564710372614588916696866380705256189275091200420889777867469960076815845533005812554024370279833417352602738957238645630218022421316018085659719905522886339307797592963651589220963169624838331067128349092388590287101947391733854761131863058309852597721854578281893526463803896177642486327611251116706500260517844468506728742344438315894010821359039161523078217149405878680119662739646089051970248511557109311678344400666762116871033307145114246415541959748122332225881538426201270329462407179476252896789816412890792269640335696880399640819918789937018417330198788087542947010382407102689347208630867856452902131554987468127457829879561928204856236344620799721369139962347173497520958378462213768539819701850454785937655123658196083912111164408403339943654824265488792270734027245079260722984442644828805676179848463573363191821661434630799066240099517180790247139534717734437363335838847258161254845296753018594368176821041120134119898357714912501835042635070571152367355211960814571467283187607441997222879857656800638640243987622379361375870065951006152766967226522173092223824968369160248153798189613413957642998101291573364500693277609624786204596554805861384244423463233530828993788502229636758690851472619555265419518232919815511254557478031523717417289649659329713883534854322293352706277110581465001382623402082981695717017008468684138664318698053379978807078392130614143400931410883107764895082726636069252749300857399983146957891451313782584813421779889982334185628094498106051146335413308913108952827590460534007226401302308884125920053045607793784122504177562785598322297113605677342454201037104741949918946594361292630504748143628114595404155510921742076680051644447720546892745989738765251643857240569480130772145879739390772733288014268217746575895529203354695557218026379859072844870018735858175942675625254149287265867725755379852710123014533658093608079938884864012062018677954147497783219498553174183134676279438767278933706692283403252917877113015327574729511179345587754967094769188708157688701127710983061470905242518516809079399023710360590399002717257171143101809976471338952551245746103382165942954128242612597117771409715148847801851722852389933687576962391203958816475341389773200121867248155680634390918084001232653804921423031290615659872941553878452078470853748709031998930198488255288692105343157512962934460986887223473487149572176693994371339910685506475387783927277216375276521804550366672072130636545547052025892421662107956162353895387438499346746504390788582015368504870558282012445226423630667282220875597989649511848999905003621979450598680467507077110461845140650759220015556348159650028843639821102243201417872983732378739808638293616268923137542133613226051415719039497239554968255407972622315896034886641017459630755072842598084318093435952613251914375003706664600844320971670212266826720405909475121363647502065102819775413041098032144960683490215345893470217443604339046575687668026760081914868057023867121857128438420884632843132428482300066873197800777955114476961227981371107726900157146285112596372305564592492288422639067307431848158798285991110030681465173282834150030576380360579321128513089977541852708920887523301478341644687481533644486458636598930283353966987466334057432590660973246549886522693205525104562498341256235343697958928050716667072869092226337931473732234855522351625414333196368951867999086217673547742813402371833701951237867263838303665079674073935093040713220387025341187878520967894813845220341724341566759581201742984957580703726832807517731939899562759698345898796000841894942243535255545947006100612682159397831706628755517026456002635494953508638736681939821049637493374661399329689318534400754590159649173750357920801

yeah...  
   that is something.
   its like about 8160 characters   
   the one flaw is (as of v1.3.3), that it is still easy to decode if you can encrypt the mapping.   
   Because you cant really encode the mapping with the same mapping because how would you know the mapping then?   
   so i used PyCryptodome instead for the mapping.
   maybe i will find something to decode the mapping too without that.   
   Oh and the secure_python.py file is also not encoded just because of clarity. 

</details>



## Installation
clone this repository and install it with pip

```bash
git clone https://github.com/soundhearddev/Secure-Python-Framework.git
cd Secure-Python-Framework
pip install .
```
## Usage
In this repository, you will find the following files and folders for testing encryption and decryption:

- `test_file.py`  
  → A sample file used to test encryption and decryption functions.

- `test/` *(folder)*  
  - `decode_test_use.py`  
    → Demonstrates how to decrypt an encrypted file.  
  - `encode_test_use.py`  
    → Demonstrates how to encrypt a file or string.

Feel free to run these examples to get a quick overview of how the system works.


