kabbes_cryptography
Contents:
src
kabbes_cryptography package
Submodules
kabbes_cryptography.AES module
AES
kabbes_cryptography.Combined module
Combined
kabbes_cryptography.RSA module
RSA
Module contents
kabbes_cryptography
src
kabbes_cryptography package
View page source
kabbes_cryptography package
Submodules
kabbes_cryptography.AES module
class
kabbes_cryptography.AES.
AES
(
**
kwargs
)
[source]
Bases:
ParentClass
DEFAULT_ATT_VALUES
=
{'associated_data':
b"I
don't
really
know
what
this
signature
is
for",
'encrypted':
None,
'iv':
None,
'iv_bytes':
12,
'key':
None,
'key_bytes':
16,
'tag':
None}
decrypt
(
)
[source]
encrypt
(
bytes_message
)
[source]
get_iv
(
set
=
False
)
[source]
get_key
(
set
=
False
)
[source]
prep_for_encrypt
(
)
[source]
kabbes_cryptography.Combined module
class
kabbes_cryptography.Combined.
Combined
(
RSA_kwargs
=
{}
,
AES_kwargs
=
{}
,
**
kwargs
)
[source]
Bases:
ParentClass
DEFAULT_ATT_VALUES
=
{'Dir':
None,
'enc_aes_key':
None}
IO_FIELDS
=
['encrypted',
'enc_aes_key',
'associated_data',
'iv',
'tag']
decrypt
(
)
[source]
encrypt
(
bytes_message
)
[source]
export_to_Dir
(
)
[source]
import_from_Dir
(
)
[source]
kabbes_cryptography.RSA module
class
kabbes_cryptography.RSA.
RSA
(
**
kwargs
)
[source]
Bases:
ParentClass
DEFAULT_ATT_VALUES
=
{'Key_bits':
2048,
'encrypted':
None,
'private_Key':
None,
'public_Key':
None}
decrypt
(
)
[source]
encrypt
(
bytes_message
)
[source]
export_Key
(
Key
,
file_Path
)
[source]
export_private_Key
(
file_Path
)
[source]
export_public_Key
(
file_Path
)
[source]
get_new_Keys
(
set
=
False
)
[source]
import_private_Key
(
file_Path
,
set
=
False
)
[source]
import_public_Key
(
file_Path
,
set
=
False
)
[source]
Module contents