[](https://travis-ci.com/VidaID/pysecbytes)
## Install:
pip install SecureBytes
## Use:
Currently supports clearing integers, strings and bytes
from SecureBytes import clearmem, safemem
x = b’data that must be removed’
copy_of_x = x
clearmem(x)
assert(b’data’ not in copy_of_x)
In python3 only, temporarily overriding mem allocator to zero ram and prevent paging:
- with safemem():
x = b’data that must be removed’ del x
# x is not in ram
Currently, safemem and scanmem aren’t supported on all pythons and platforms, use import safemem_supported, scanmem_supported to check.
## Warnings:
Do not try to derive from str or bytes… extra copies of your data will be made
Clearing strings and bytes also clears all references to them
If you choose store sensitive material in a class, and put clearmem in __del__, it will only be cleared when the last reference is freed
“safemem” is not yet efficient (TODO), and it only prevents swapping on Windows (TODO)
Metadata
Release files for SecureBytes 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SecureBytes-0.3.5.tar.gz | 6.0 kB | Without provenance | Details for SecureBytes-0.3.5.tar.gz |
Release files / SecureBytes-0.3.5.tar.gz
| Download URL | SecureBytes-0.3.5.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24241525ce3bd3cf259fdc41c55786f13aa8fb20cfce25455d2618851d6d3852
|
|
BLAKE2b-256 checksum How to use checksums |
66da0c50a4d4decd15bc5e0816670128601c1ae78f6de945f0ffb36e74eadd00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for SecureBytes 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.