Name | Win32Security JSON |
Version |
2.1.0
JSON |
| download |
home_page | |
Summary | Data secured by the Windows API |
upload_time | 2022-12-15 13:54:08 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.6 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Win32Security
#### _Data secured by the Windows API_
Author:
-------
- [Axelle (LassaInora) VIANDIER](mailto:axelleviandier@lassainora.fr)
License:
--------
- GNU General Public License v3.0
Version:
--------
- `2.1.0`
--------
## Summary
- **[Links](#links)**
- **[Methods](#methods)**
--------
## Links
- [Personal GitHub](https://github.com/LassaInora)
- [GitHub project](https://github.com/LassaInora/Win32Security)
- [Website project](https://lassainora.fr/projets/librairies/Win32Security)
- [Pypi project](https://pypi.org/project/Win32Security/)
--------
## Methods
Execution: python -m Win32Security {path}
- ### import Win32Security
- #### class SecurityObject
- SecurityObject(data_=None, encrypt=False)
- data_ (str): The encrypted or decrypted data to be saved.
- encrypt (bool): Should the data be encrypted?
- data (str)
- The decrypted data
- encrypted_data (str)
- The encrypted data
To use Win32Security you must create a python file which will be your parameter file.
This should look like this:
```python
from Win32Security import *
# <lock:True>
def _get_data(data):
if data[0] == SecurityObject:
return data[0](data[1]).data
else:
return data[0](data[1])
class YourClassName__:
"""Settings of YourClassName"""
_YOURVARIABLENAME = (type_of_variable, "Your variable")
@property
def YOURVARIABLENAME(self):
return _get_data(self._YOURVARIABLENAME)
class ClassExample__:
"""Settings of ClassExample"""
_DATA1 = (SecurityObject, "0a1b2c3d4e5f6g7h8i9j") # Fake encrypted 'Banana'
_DATA2 = (int, "42")
_DATA3 = (str, "foo")
@property
def DATA3(self):
return _get_data(self._DATA3)
@property
def DATA2(self):
return _get_data(self._DATA2)
@property
def DATA1(self):
return _get_data(self._DATA1)
...
```
You can call its classes from your code normally, the value of their self will be the value of your variable transformed by the indicated class.
If you use the SecurityObject class then the encrypted value in your file will be decrypted when used without modifying the current file.
```python
obj = ClassExample__().DATA1
# obj -> 'Banana'
obj = ClassExample__().DATA2
# obj -> 42
obj = ClassExample__().DATA3
# obj -> 'foo'
```
In order to create, modify or see your data it is advisable to refer to `python -m Win32Security`
To share the file to another computer you can unlock the file.
**/!\ Warning!** By unlocking the file all values so far encrypted will be decrypted!
A decrypted file is mentioned by the comment at the beginning of the file
```python
# <lock:False>
```
Please do not change this value manually as this may corrupt your file!
Raw data
{
"_id": null,
"home_page": "",
"name": "Win32Security",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Axelle Viandier <lassainora@lassainora.fr>",
"download_url": "https://files.pythonhosted.org/packages/9f/37/1abcadb3cc78e39e39dc346f3fbdadd4cc3adfbe07b89e545f5ffca52f56/win32security-2.1.0.tar.gz",
"platform": null,
"description": "# Win32Security\n\n#### _Data secured by the Windows API_\n\nAuthor:\n-------\n- [Axelle (LassaInora) VIANDIER](mailto:axelleviandier@lassainora.fr)\n\nLicense:\n--------\n- GNU General Public License v3.0\n\nVersion:\n--------\n- `2.1.0`\n\n--------\n## Summary\n\n- **[Links](#links)**\n- **[Methods](#methods)**\n--------\n\n## Links\n\n- [Personal GitHub](https://github.com/LassaInora)\n- [GitHub project](https://github.com/LassaInora/Win32Security)\n- [Website project](https://lassainora.fr/projets/librairies/Win32Security)\n- [Pypi project](https://pypi.org/project/Win32Security/)\n\n--------\n## Methods\n\n Execution: python -m Win32Security {path}\n \n- ### import Win32Security\n - #### class SecurityObject\n - SecurityObject(data_=None, encrypt=False)\n - data_ (str): The encrypted or decrypted data to be saved.\n - encrypt (bool): Should the data be encrypted?\n - data (str)\n - The decrypted data\n - encrypted_data (str)\n - The encrypted data\n\n\n To use Win32Security you must create a python file which will be your parameter file.\n This should look like this:\n\n ```python\n from Win32Security import *\n\n # <lock:True>\n\n\n def _get_data(data):\n if data[0] == SecurityObject:\n return data[0](data[1]).data\n else:\n return data[0](data[1])\n \n \n class YourClassName__:\n \"\"\"Settings of YourClassName\"\"\"\n \n _YOURVARIABLENAME = (type_of_variable, \"Your variable\")\n \n @property\n def YOURVARIABLENAME(self):\n return _get_data(self._YOURVARIABLENAME)\n \n \n class ClassExample__:\n \"\"\"Settings of ClassExample\"\"\"\n \n _DATA1 = (SecurityObject, \"0a1b2c3d4e5f6g7h8i9j\") # Fake encrypted 'Banana'\n _DATA2 = (int, \"42\")\n _DATA3 = (str, \"foo\")\n \n @property\n def DATA3(self):\n return _get_data(self._DATA3)\n \n @property\n def DATA2(self):\n return _get_data(self._DATA2)\n \n @property\n def DATA1(self):\n return _get_data(self._DATA1)\n \n ...\n ```\n \n You can call its classes from your code normally, the value of their self will be the value of your variable transformed by the indicated class.\nIf you use the SecurityObject class then the encrypted value in your file will be decrypted when used without modifying the current file.\n \n ```python\n obj = ClassExample__().DATA1\n # obj -> 'Banana'\n obj = ClassExample__().DATA2\n # obj -> 42\n obj = ClassExample__().DATA3\n # obj -> 'foo'\n ```\n\n In order to create, modify or see your data it is advisable to refer to `python -m Win32Security`\n\n\n To share the file to another computer you can unlock the file.\n\n **/!\\ Warning!** By unlocking the file all values so far encrypted will be decrypted!\n A decrypted file is mentioned by the comment at the beginning of the file\n ```python\n # <lock:False>\n ```\n Please do not change this value manually as this may corrupt your file!\n\n \n",
"bugtrack_url": null,
"license": "",
"summary": "Data secured by the Windows API",
"version": "2.1.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "0201901d6c0d2b798ec1b062aa8cd60a",
"sha256": "b8d734e9b8b452e813718580ec97615ef4d2277154f8c3474dc11b68b97a6645"
},
"downloads": -1,
"filename": "win32security-2.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0201901d6c0d2b798ec1b062aa8cd60a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 18629,
"upload_time": "2022-12-15T13:54:05",
"upload_time_iso_8601": "2022-12-15T13:54:05.707337Z",
"url": "https://files.pythonhosted.org/packages/56/c6/c0f9b6cdccdf2b1580e1547133236cbe5f12eef834742f0805689705765c/win32security-2.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "fe907545fccf864579a95afd1170aa9d",
"sha256": "3737a721f587ba084bbe24f6babe180cf2498464dc452aa4d41f6077aef186c2"
},
"downloads": -1,
"filename": "win32security-2.1.0.tar.gz",
"has_sig": false,
"md5_digest": "fe907545fccf864579a95afd1170aa9d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 18109,
"upload_time": "2022-12-15T13:54:08",
"upload_time_iso_8601": "2022-12-15T13:54:08.049658Z",
"url": "https://files.pythonhosted.org/packages/9f/37/1abcadb3cc78e39e39dc346f3fbdadd4cc3adfbe07b89e545f5ffca52f56/win32security-2.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-15 13:54:08",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "win32security"
}