otdf-python 0.1.9__py3-none-any.whl → 0.1.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- otdf_python/_gotdf_python.cpython-312-darwin.so +0 -0
- otdf_python/build.py +14 -14
- otdf_python/gotdf_python.py +118 -118
- {otdf_python-0.1.9.dist-info → otdf_python-0.1.10.dist-info}/METADATA +1 -1
- otdf_python-0.1.10.dist-info/RECORD +10 -0
- otdf_python-0.1.9.dist-info/RECORD +0 -10
- {otdf_python-0.1.9.dist-info → otdf_python-0.1.10.dist-info}/LICENSE +0 -0
- {otdf_python-0.1.9.dist-info → otdf_python-0.1.10.dist-info}/WHEEL +0 -0
- {otdf_python-0.1.9.dist-info → otdf_python-0.1.10.dist-info}/top_level.txt +0 -0
|
Binary file
|
otdf_python/build.py
CHANGED
|
@@ -149,17 +149,6 @@ mod.add_function('Slice_uint8_elem', retval('uint8_t'), [param('int64_t', 'handl
|
|
|
149
149
|
mod.add_function('Slice_uint8_subslice', retval('int64_t'), [param('int64_t', 'handle'), param('int', 'st'), param('int', 'ed')])
|
|
150
150
|
mod.add_function('Slice_uint8_set', None, [param('int64_t', 'handle'), param('int', 'idx'), param('uint8_t', 'value')])
|
|
151
151
|
mod.add_function('Slice_uint8_append', None, [param('int64_t', 'handle'), param('uint8_t', 'value')])
|
|
152
|
-
mod.add_function('gotdf_python_DecryptionConfig_CTor', retval('int64_t'), [])
|
|
153
|
-
mod.add_function('gotdf_python_DecryptionConfig_ClientId_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
154
|
-
mod.add_function('gotdf_python_DecryptionConfig_ClientId_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
155
|
-
mod.add_function('gotdf_python_DecryptionConfig_ClientSecret_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
156
|
-
mod.add_function('gotdf_python_DecryptionConfig_ClientSecret_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
157
|
-
mod.add_function('gotdf_python_DecryptionConfig_PlatformEndpoint_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
158
|
-
mod.add_function('gotdf_python_DecryptionConfig_PlatformEndpoint_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
159
|
-
mod.add_function('gotdf_python_DecryptionConfig_TokenEndpoint_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
160
|
-
mod.add_function('gotdf_python_DecryptionConfig_TokenEndpoint_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
161
|
-
mod.add_function('gotdf_python_DecryptionConfig_KasUrl_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
162
|
-
mod.add_function('gotdf_python_DecryptionConfig_KasUrl_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
163
152
|
mod.add_function('gotdf_python_EncryptionConfig_CTor', retval('int64_t'), [])
|
|
164
153
|
mod.add_function('gotdf_python_EncryptionConfig_ClientId_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
165
154
|
mod.add_function('gotdf_python_EncryptionConfig_ClientId_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
@@ -178,13 +167,24 @@ mod.add_function('gotdf_python_TokenAuth_AccessToken_Get', retval('char*'), [par
|
|
|
178
167
|
mod.add_function('gotdf_python_TokenAuth_AccessToken_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
179
168
|
mod.add_function('gotdf_python_TokenAuth_NpeClientId_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
180
169
|
mod.add_function('gotdf_python_TokenAuth_NpeClientId_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
170
|
+
mod.add_function('gotdf_python_DecryptionConfig_CTor', retval('int64_t'), [])
|
|
171
|
+
mod.add_function('gotdf_python_DecryptionConfig_ClientId_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
172
|
+
mod.add_function('gotdf_python_DecryptionConfig_ClientId_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
173
|
+
mod.add_function('gotdf_python_DecryptionConfig_ClientSecret_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
174
|
+
mod.add_function('gotdf_python_DecryptionConfig_ClientSecret_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
175
|
+
mod.add_function('gotdf_python_DecryptionConfig_PlatformEndpoint_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
176
|
+
mod.add_function('gotdf_python_DecryptionConfig_PlatformEndpoint_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
177
|
+
mod.add_function('gotdf_python_DecryptionConfig_TokenEndpoint_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
178
|
+
mod.add_function('gotdf_python_DecryptionConfig_TokenEndpoint_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
179
|
+
mod.add_function('gotdf_python_DecryptionConfig_KasUrl_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
180
|
+
mod.add_function('gotdf_python_DecryptionConfig_KasUrl_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
184
181
|
add_checked_string_function(mod, 'gotdf_python_Hello', retval('char*'), [])
|
|
185
182
|
add_checked_string_function(mod, 'gotdf_python_DecryptFile', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config')])
|
|
186
183
|
add_checked_string_function(mod, 'gotdf_python_DecryptFilePE', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config'), param('int64_t', 'token')])
|
|
187
184
|
add_checked_string_function(mod, 'gotdf_python_DecryptStringPE', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config'), param('int64_t', 'token')])
|
|
185
|
+
add_checked_string_function(mod, 'gotdf_python_EncryptFile', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config')])
|
|
186
|
+
add_checked_string_function(mod, 'gotdf_python_EncryptFilePE', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config'), param('int64_t', 'token')])
|
|
187
|
+
add_checked_string_function(mod, 'gotdf_python_EncryptString', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config')])
|
|
188
188
|
|
|
189
189
|
mod.generate(open('gotdf_python.c', 'w'))
|
|
190
190
|
|
otdf_python/gotdf_python.py
CHANGED
|
@@ -44,112 +44,6 @@ os.chdir(cwd)
|
|
|
44
44
|
|
|
45
45
|
# ---- Structs ---
|
|
46
46
|
|
|
47
|
-
# Python type for struct gotdf_python.DecryptionConfig
|
|
48
|
-
class DecryptionConfig(go.GoClass):
|
|
49
|
-
""""""
|
|
50
|
-
def __init__(self, *args, **kwargs):
|
|
51
|
-
"""
|
|
52
|
-
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
53
|
-
otherwise parameters can be unnamed in order of field names or named fields
|
|
54
|
-
in which case a new Go object is constructed first
|
|
55
|
-
"""
|
|
56
|
-
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
57
|
-
self.handle = kwargs['handle']
|
|
58
|
-
_gotdf_python.IncRef(self.handle)
|
|
59
|
-
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
60
|
-
self.handle = args[0].handle
|
|
61
|
-
_gotdf_python.IncRef(self.handle)
|
|
62
|
-
else:
|
|
63
|
-
self.handle = _gotdf_python.gotdf_python_DecryptionConfig_CTor()
|
|
64
|
-
_gotdf_python.IncRef(self.handle)
|
|
65
|
-
if 0 < len(args):
|
|
66
|
-
self.ClientId = args[0]
|
|
67
|
-
if "ClientId" in kwargs:
|
|
68
|
-
self.ClientId = kwargs["ClientId"]
|
|
69
|
-
if 1 < len(args):
|
|
70
|
-
self.ClientSecret = args[1]
|
|
71
|
-
if "ClientSecret" in kwargs:
|
|
72
|
-
self.ClientSecret = kwargs["ClientSecret"]
|
|
73
|
-
if 2 < len(args):
|
|
74
|
-
self.PlatformEndpoint = args[2]
|
|
75
|
-
if "PlatformEndpoint" in kwargs:
|
|
76
|
-
self.PlatformEndpoint = kwargs["PlatformEndpoint"]
|
|
77
|
-
if 3 < len(args):
|
|
78
|
-
self.TokenEndpoint = args[3]
|
|
79
|
-
if "TokenEndpoint" in kwargs:
|
|
80
|
-
self.TokenEndpoint = kwargs["TokenEndpoint"]
|
|
81
|
-
if 4 < len(args):
|
|
82
|
-
self.KasUrl = args[4]
|
|
83
|
-
if "KasUrl" in kwargs:
|
|
84
|
-
self.KasUrl = kwargs["KasUrl"]
|
|
85
|
-
def __del__(self):
|
|
86
|
-
_gotdf_python.DecRef(self.handle)
|
|
87
|
-
def __str__(self):
|
|
88
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
89
|
-
sv = 'gotdf_python.DecryptionConfig{'
|
|
90
|
-
first = True
|
|
91
|
-
for v in pr:
|
|
92
|
-
if callable(v[1]):
|
|
93
|
-
continue
|
|
94
|
-
if first:
|
|
95
|
-
first = False
|
|
96
|
-
else:
|
|
97
|
-
sv += ', '
|
|
98
|
-
sv += v[0] + '=' + str(v[1])
|
|
99
|
-
return sv + '}'
|
|
100
|
-
def __repr__(self):
|
|
101
|
-
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
102
|
-
sv = 'gotdf_python.DecryptionConfig ( '
|
|
103
|
-
for v in pr:
|
|
104
|
-
if not callable(v[1]):
|
|
105
|
-
sv += v[0] + '=' + str(v[1]) + ', '
|
|
106
|
-
return sv + ')'
|
|
107
|
-
@property
|
|
108
|
-
def ClientId(self):
|
|
109
|
-
return _gotdf_python.gotdf_python_DecryptionConfig_ClientId_Get(self.handle)
|
|
110
|
-
@ClientId.setter
|
|
111
|
-
def ClientId(self, value):
|
|
112
|
-
if isinstance(value, go.GoClass):
|
|
113
|
-
_gotdf_python.gotdf_python_DecryptionConfig_ClientId_Set(self.handle, value.handle)
|
|
114
|
-
else:
|
|
115
|
-
_gotdf_python.gotdf_python_DecryptionConfig_ClientId_Set(self.handle, value)
|
|
116
|
-
@property
|
|
117
|
-
def ClientSecret(self):
|
|
118
|
-
return _gotdf_python.gotdf_python_DecryptionConfig_ClientSecret_Get(self.handle)
|
|
119
|
-
@ClientSecret.setter
|
|
120
|
-
def ClientSecret(self, value):
|
|
121
|
-
if isinstance(value, go.GoClass):
|
|
122
|
-
_gotdf_python.gotdf_python_DecryptionConfig_ClientSecret_Set(self.handle, value.handle)
|
|
123
|
-
else:
|
|
124
|
-
_gotdf_python.gotdf_python_DecryptionConfig_ClientSecret_Set(self.handle, value)
|
|
125
|
-
@property
|
|
126
|
-
def PlatformEndpoint(self):
|
|
127
|
-
return _gotdf_python.gotdf_python_DecryptionConfig_PlatformEndpoint_Get(self.handle)
|
|
128
|
-
@PlatformEndpoint.setter
|
|
129
|
-
def PlatformEndpoint(self, value):
|
|
130
|
-
if isinstance(value, go.GoClass):
|
|
131
|
-
_gotdf_python.gotdf_python_DecryptionConfig_PlatformEndpoint_Set(self.handle, value.handle)
|
|
132
|
-
else:
|
|
133
|
-
_gotdf_python.gotdf_python_DecryptionConfig_PlatformEndpoint_Set(self.handle, value)
|
|
134
|
-
@property
|
|
135
|
-
def TokenEndpoint(self):
|
|
136
|
-
return _gotdf_python.gotdf_python_DecryptionConfig_TokenEndpoint_Get(self.handle)
|
|
137
|
-
@TokenEndpoint.setter
|
|
138
|
-
def TokenEndpoint(self, value):
|
|
139
|
-
if isinstance(value, go.GoClass):
|
|
140
|
-
_gotdf_python.gotdf_python_DecryptionConfig_TokenEndpoint_Set(self.handle, value.handle)
|
|
141
|
-
else:
|
|
142
|
-
_gotdf_python.gotdf_python_DecryptionConfig_TokenEndpoint_Set(self.handle, value)
|
|
143
|
-
@property
|
|
144
|
-
def KasUrl(self):
|
|
145
|
-
return _gotdf_python.gotdf_python_DecryptionConfig_KasUrl_Get(self.handle)
|
|
146
|
-
@KasUrl.setter
|
|
147
|
-
def KasUrl(self, value):
|
|
148
|
-
if isinstance(value, go.GoClass):
|
|
149
|
-
_gotdf_python.gotdf_python_DecryptionConfig_KasUrl_Set(self.handle, value.handle)
|
|
150
|
-
else:
|
|
151
|
-
_gotdf_python.gotdf_python_DecryptionConfig_KasUrl_Set(self.handle, value)
|
|
152
|
-
|
|
153
47
|
# Python type for struct gotdf_python.EncryptionConfig
|
|
154
48
|
class EncryptionConfig(go.GoClass):
|
|
155
49
|
"""In a pure golang library, we'd probably embed\nthe 'DecryptionConfig' struct into the\n'EncryptionConfig' struct. However, this makes\nusage from Python / Gopy difficult, so\nit's not worthwhile.\n"""
|
|
@@ -336,6 +230,112 @@ class TokenAuth(go.GoClass):
|
|
|
336
230
|
else:
|
|
337
231
|
_gotdf_python.gotdf_python_TokenAuth_NpeClientId_Set(self.handle, value)
|
|
338
232
|
|
|
233
|
+
# Python type for struct gotdf_python.DecryptionConfig
|
|
234
|
+
class DecryptionConfig(go.GoClass):
|
|
235
|
+
""""""
|
|
236
|
+
def __init__(self, *args, **kwargs):
|
|
237
|
+
"""
|
|
238
|
+
handle=A Go-side object is always initialized with an explicit handle=arg
|
|
239
|
+
otherwise parameters can be unnamed in order of field names or named fields
|
|
240
|
+
in which case a new Go object is constructed first
|
|
241
|
+
"""
|
|
242
|
+
if len(kwargs) == 1 and 'handle' in kwargs:
|
|
243
|
+
self.handle = kwargs['handle']
|
|
244
|
+
_gotdf_python.IncRef(self.handle)
|
|
245
|
+
elif len(args) == 1 and isinstance(args[0], go.GoClass):
|
|
246
|
+
self.handle = args[0].handle
|
|
247
|
+
_gotdf_python.IncRef(self.handle)
|
|
248
|
+
else:
|
|
249
|
+
self.handle = _gotdf_python.gotdf_python_DecryptionConfig_CTor()
|
|
250
|
+
_gotdf_python.IncRef(self.handle)
|
|
251
|
+
if 0 < len(args):
|
|
252
|
+
self.ClientId = args[0]
|
|
253
|
+
if "ClientId" in kwargs:
|
|
254
|
+
self.ClientId = kwargs["ClientId"]
|
|
255
|
+
if 1 < len(args):
|
|
256
|
+
self.ClientSecret = args[1]
|
|
257
|
+
if "ClientSecret" in kwargs:
|
|
258
|
+
self.ClientSecret = kwargs["ClientSecret"]
|
|
259
|
+
if 2 < len(args):
|
|
260
|
+
self.PlatformEndpoint = args[2]
|
|
261
|
+
if "PlatformEndpoint" in kwargs:
|
|
262
|
+
self.PlatformEndpoint = kwargs["PlatformEndpoint"]
|
|
263
|
+
if 3 < len(args):
|
|
264
|
+
self.TokenEndpoint = args[3]
|
|
265
|
+
if "TokenEndpoint" in kwargs:
|
|
266
|
+
self.TokenEndpoint = kwargs["TokenEndpoint"]
|
|
267
|
+
if 4 < len(args):
|
|
268
|
+
self.KasUrl = args[4]
|
|
269
|
+
if "KasUrl" in kwargs:
|
|
270
|
+
self.KasUrl = kwargs["KasUrl"]
|
|
271
|
+
def __del__(self):
|
|
272
|
+
_gotdf_python.DecRef(self.handle)
|
|
273
|
+
def __str__(self):
|
|
274
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
275
|
+
sv = 'gotdf_python.DecryptionConfig{'
|
|
276
|
+
first = True
|
|
277
|
+
for v in pr:
|
|
278
|
+
if callable(v[1]):
|
|
279
|
+
continue
|
|
280
|
+
if first:
|
|
281
|
+
first = False
|
|
282
|
+
else:
|
|
283
|
+
sv += ', '
|
|
284
|
+
sv += v[0] + '=' + str(v[1])
|
|
285
|
+
return sv + '}'
|
|
286
|
+
def __repr__(self):
|
|
287
|
+
pr = [(p, getattr(self, p)) for p in dir(self) if not p.startswith('__')]
|
|
288
|
+
sv = 'gotdf_python.DecryptionConfig ( '
|
|
289
|
+
for v in pr:
|
|
290
|
+
if not callable(v[1]):
|
|
291
|
+
sv += v[0] + '=' + str(v[1]) + ', '
|
|
292
|
+
return sv + ')'
|
|
293
|
+
@property
|
|
294
|
+
def ClientId(self):
|
|
295
|
+
return _gotdf_python.gotdf_python_DecryptionConfig_ClientId_Get(self.handle)
|
|
296
|
+
@ClientId.setter
|
|
297
|
+
def ClientId(self, value):
|
|
298
|
+
if isinstance(value, go.GoClass):
|
|
299
|
+
_gotdf_python.gotdf_python_DecryptionConfig_ClientId_Set(self.handle, value.handle)
|
|
300
|
+
else:
|
|
301
|
+
_gotdf_python.gotdf_python_DecryptionConfig_ClientId_Set(self.handle, value)
|
|
302
|
+
@property
|
|
303
|
+
def ClientSecret(self):
|
|
304
|
+
return _gotdf_python.gotdf_python_DecryptionConfig_ClientSecret_Get(self.handle)
|
|
305
|
+
@ClientSecret.setter
|
|
306
|
+
def ClientSecret(self, value):
|
|
307
|
+
if isinstance(value, go.GoClass):
|
|
308
|
+
_gotdf_python.gotdf_python_DecryptionConfig_ClientSecret_Set(self.handle, value.handle)
|
|
309
|
+
else:
|
|
310
|
+
_gotdf_python.gotdf_python_DecryptionConfig_ClientSecret_Set(self.handle, value)
|
|
311
|
+
@property
|
|
312
|
+
def PlatformEndpoint(self):
|
|
313
|
+
return _gotdf_python.gotdf_python_DecryptionConfig_PlatformEndpoint_Get(self.handle)
|
|
314
|
+
@PlatformEndpoint.setter
|
|
315
|
+
def PlatformEndpoint(self, value):
|
|
316
|
+
if isinstance(value, go.GoClass):
|
|
317
|
+
_gotdf_python.gotdf_python_DecryptionConfig_PlatformEndpoint_Set(self.handle, value.handle)
|
|
318
|
+
else:
|
|
319
|
+
_gotdf_python.gotdf_python_DecryptionConfig_PlatformEndpoint_Set(self.handle, value)
|
|
320
|
+
@property
|
|
321
|
+
def TokenEndpoint(self):
|
|
322
|
+
return _gotdf_python.gotdf_python_DecryptionConfig_TokenEndpoint_Get(self.handle)
|
|
323
|
+
@TokenEndpoint.setter
|
|
324
|
+
def TokenEndpoint(self, value):
|
|
325
|
+
if isinstance(value, go.GoClass):
|
|
326
|
+
_gotdf_python.gotdf_python_DecryptionConfig_TokenEndpoint_Set(self.handle, value.handle)
|
|
327
|
+
else:
|
|
328
|
+
_gotdf_python.gotdf_python_DecryptionConfig_TokenEndpoint_Set(self.handle, value)
|
|
329
|
+
@property
|
|
330
|
+
def KasUrl(self):
|
|
331
|
+
return _gotdf_python.gotdf_python_DecryptionConfig_KasUrl_Get(self.handle)
|
|
332
|
+
@KasUrl.setter
|
|
333
|
+
def KasUrl(self, value):
|
|
334
|
+
if isinstance(value, go.GoClass):
|
|
335
|
+
_gotdf_python.gotdf_python_DecryptionConfig_KasUrl_Set(self.handle, value.handle)
|
|
336
|
+
else:
|
|
337
|
+
_gotdf_python.gotdf_python_DecryptionConfig_KasUrl_Set(self.handle, value)
|
|
338
|
+
|
|
339
339
|
|
|
340
340
|
# ---- Slices ---
|
|
341
341
|
|
|
@@ -347,18 +347,6 @@ class TokenAuth(go.GoClass):
|
|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
# ---- Functions ---
|
|
350
|
-
def EncryptFile(inputFilePath, outputFilePath, config):
|
|
351
|
-
"""EncryptFile(str inputFilePath, str outputFilePath, object config) str, str"""
|
|
352
|
-
return _gotdf_python.gotdf_python_EncryptFile(inputFilePath, outputFilePath, config.handle)
|
|
353
|
-
def EncryptFilePE(inputFilePath, outputFilePath, config, token):
|
|
354
|
-
"""EncryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str
|
|
355
|
-
|
|
356
|
-
Encrypts a file as a PE (Person Entity), returning a TDF manifest and the cipher text.
|
|
357
|
-
"""
|
|
358
|
-
return _gotdf_python.gotdf_python_EncryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
|
|
359
|
-
def EncryptString(inputText, config):
|
|
360
|
-
"""EncryptString(str inputText, object config) str, str"""
|
|
361
|
-
return _gotdf_python.gotdf_python_EncryptString(inputText, config.handle)
|
|
362
350
|
def Hello():
|
|
363
351
|
"""Hello() str
|
|
364
352
|
|
|
@@ -379,5 +367,17 @@ def DecryptFilePE(inputFilePath, outputFilePath, config, token):
|
|
|
379
367
|
def DecryptStringPE(inputText, config, token):
|
|
380
368
|
"""DecryptStringPE(str inputText, object config, object token) str, str"""
|
|
381
369
|
return _gotdf_python.gotdf_python_DecryptStringPE(inputText, config.handle, token.handle)
|
|
370
|
+
def EncryptFile(inputFilePath, outputFilePath, config):
|
|
371
|
+
"""EncryptFile(str inputFilePath, str outputFilePath, object config) str, str"""
|
|
372
|
+
return _gotdf_python.gotdf_python_EncryptFile(inputFilePath, outputFilePath, config.handle)
|
|
373
|
+
def EncryptFilePE(inputFilePath, outputFilePath, config, token):
|
|
374
|
+
"""EncryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str
|
|
375
|
+
|
|
376
|
+
Encrypts a file as a PE (Person Entity), returning a TDF manifest and the cipher text.
|
|
377
|
+
"""
|
|
378
|
+
return _gotdf_python.gotdf_python_EncryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
|
|
379
|
+
def EncryptString(inputText, config):
|
|
380
|
+
"""EncryptString(str inputText, object config) str, str"""
|
|
381
|
+
return _gotdf_python.gotdf_python_EncryptString(inputText, config.handle)
|
|
382
382
|
|
|
383
383
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
otdf_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
otdf_python/_gotdf_python.cpython-312-darwin.so,sha256=rgrPa2j6S7QJLSUkQsRIKHbDQIOFfvhnSCY-wi05Ek4,15789992
|
|
3
|
+
otdf_python/build.py,sha256=K-TQXKbRn8_DaH8iBI1bh6Fifr4TwA71ZKI6puWNN9Y,16756
|
|
4
|
+
otdf_python/go.py,sha256=7kz0kwEbEJZp9ZJIvdcUryZmhahLRb5RrkhGBN2BDBY,49317
|
|
5
|
+
otdf_python/gotdf_python.py,sha256=MjJ27o4T79XD363Jh9UkELWzygBpqNJerR8MG_GAVz8,13880
|
|
6
|
+
otdf_python-0.1.10.dist-info/LICENSE,sha256=51wzGxR-Rns8XaiGmDLq2OqPN3qWMpoQKV-fERpVzyM,1063
|
|
7
|
+
otdf_python-0.1.10.dist-info/METADATA,sha256=pns0pHvTu26kBm-sjvco0zan-WIh3nzrC__hPtiCAzU,4934
|
|
8
|
+
otdf_python-0.1.10.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
9
|
+
otdf_python-0.1.10.dist-info/top_level.txt,sha256=A2vK95iTIxdu4pm8kDZlvHorBKCvSN5dvlMdFbIVXrA,12
|
|
10
|
+
otdf_python-0.1.10.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
otdf_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
otdf_python/_gotdf_python.cpython-312-darwin.so,sha256=jazdOllpkFdjoxsZPUk0k70cy_0otCcT41NRJ8F1IHY,15789992
|
|
3
|
-
otdf_python/build.py,sha256=1rFsosV3JfeaySm5QT14CY0x51go6XbdiL3UgreyIek,16756
|
|
4
|
-
otdf_python/go.py,sha256=7kz0kwEbEJZp9ZJIvdcUryZmhahLRb5RrkhGBN2BDBY,49317
|
|
5
|
-
otdf_python/gotdf_python.py,sha256=PcXrL4WNGcK-peWHhO1Xt72KYgE3US2Q0y33OlcHGtQ,13880
|
|
6
|
-
otdf_python-0.1.9.dist-info/LICENSE,sha256=51wzGxR-Rns8XaiGmDLq2OqPN3qWMpoQKV-fERpVzyM,1063
|
|
7
|
-
otdf_python-0.1.9.dist-info/METADATA,sha256=vs9qd-uFjdtJ7uiJQwqoMzndIlARJ5mZJdKaMT5nmG0,4933
|
|
8
|
-
otdf_python-0.1.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
9
|
-
otdf_python-0.1.9.dist-info/top_level.txt,sha256=A2vK95iTIxdu4pm8kDZlvHorBKCvSN5dvlMdFbIVXrA,12
|
|
10
|
-
otdf_python-0.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|