Data secured by the Windows API
Project description
Win32Security
Data secured by the Windows API
Author:
License:
- GNU General Public License v3.0
Version:
1.0.1
Summary
Links
Methods
-
python -m Win32Security <command> [options]
- help
Usage: python.exe -m Win32Security <command> [options] Commands: view Checks class data of the configuration file set in parameter edit Edit the configuration file set in parameter create Create a configuration file named by default 'settings.py' General Options: -h, --help Show help.
- view
Usage: python.exe -m Win32Security view <path of file> General Options: -h, --help Show help.
- edit
Usage: python.exe -m Win32Security edit <path of file> General Options: -h, --help Show help.
- create
Usage: python.exe -m Win32Security create [options] General Options: -h, --help Show help. -n, --name Name of the file. -f, --folder Folder of the file.
- help
-
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
- SecurityObject(data_=None, encrypt=False)
To use Win32Security you must create a python file which will be your parameter file. This should look like this:
from Win32Security import * # <class> class YourClassName__(Params): """Settings of YourClassName""" def __init__(self): self.YOURVARIABLENAME = (type_of_variable, "Your variable") # </class> # <class> class ClassExample__(Params): """Settings of YourSecondClassName""" def __init__(self): self.DATA1 = (SecurityObject, "0a1b2c3d4e5f6g7h8i9j") # Fake encrypted 'Banana' self.DATA2 = (int, "42") self.DATA3 = (str, "foo") # </class> ...
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.
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
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
win32security-1.0.1.tar.gz
(17.8 kB
view hashes)
Built Distribution
Close
Hashes for win32security-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6009e30981b3b15e069e35ea70ace56147917424b33351bbc83060d511157759 |
|
MD5 | acdc2c41d4036443f160fcf93d2ae121 |
|
BLAKE2b-256 | c7fad168558bd57af2fe43732c7522de9bdda3ed65471fc3355004e9c1692185 |