-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
62 lines (53 loc) · 1.32 KB
/
__init__.py
File metadata and controls
62 lines (53 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
"""
Seigr Toolset Crypto (STC)
Post-classical cryptographic engine with entropy-regenerative architecture
SIMPLE API - Just import and use:
import stc
encrypted, meta = stc.encrypt(b"data", password="pass")
data = stc.decrypt(encrypted, meta, password="pass")
Or for backwards compatibility:
from SeigrToolsetCrypto import STCContext, quick_encrypt, quick_decrypt
"""
__version__ = "0.4.1"
__author__ = "Sergi Saldaña-Massó - Seigr Lab"
# NEW: Simple high-level API (recommended for all new code)
from . import stc
# LEGACY: Backwards compatibility with existing code
from .interfaces.api.stc_api import (
STCContext,
initialize,
quick_encrypt,
quick_decrypt,
hash_data,
encrypt,
decrypt,
STC_VERSION
)
from .interfaces.api.streaming_context import (
StreamingContext,
ChunkHeader
)
from .core.profiles import (
SecurityProfile,
SecurityProfileManager,
AdvancedProfileManager
)
# Export both APIs
__all__ = [
# NEW Simple API (use this)
"stc",
# LEGACY API (for backwards compatibility)
"STCContext",
"StreamingContext",
"ChunkHeader",
"SecurityProfile",
"SecurityProfileManager",
"AdvancedProfileManager",
"initialize",
"quick_encrypt",
"quick_decrypt",
"hash_data",
"encrypt",
"decrypt",
"STC_VERSION",
]