maleo-foundation 0.1.75__tar.gz → 0.1.77__tar.gz

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.
Files changed (116) hide show
  1. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/PKG-INFO +1 -1
  2. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/manager.py +17 -2
  3. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/services/__init__.py +4 -0
  4. maleo_foundation-0.1.77/maleo_foundation/client/services/encryption/__init__.py +9 -0
  5. maleo_foundation-0.1.77/maleo_foundation/client/services/encryption/aes.py +54 -0
  6. maleo_foundation-0.1.77/maleo_foundation/client/services/encryption/rsa.py +68 -0
  7. maleo_foundation-0.1.77/maleo_foundation/client/services/key.py +113 -0
  8. maleo_foundation-0.1.77/maleo_foundation/expanded_types/encryption/__init__.py +7 -0
  9. maleo_foundation-0.1.77/maleo_foundation/expanded_types/encryption/aes.py +13 -0
  10. maleo_foundation-0.1.77/maleo_foundation/expanded_types/encryption/rsa.py +13 -0
  11. maleo_foundation-0.1.77/maleo_foundation/expanded_types/key.py +18 -0
  12. maleo_foundation-0.1.77/maleo_foundation/models/schemas/encryption.py +18 -0
  13. maleo_foundation-0.1.77/maleo_foundation/models/schemas/key.py +15 -0
  14. maleo_foundation-0.1.77/maleo_foundation/models/transfers/general/key.py +15 -0
  15. maleo_foundation-0.1.77/maleo_foundation/models/transfers/parameters/encryption/__init__.py +7 -0
  16. maleo_foundation-0.1.77/maleo_foundation/models/transfers/parameters/encryption/aes.py +13 -0
  17. maleo_foundation-0.1.77/maleo_foundation/models/transfers/parameters/encryption/rsa.py +12 -0
  18. maleo_foundation-0.1.77/maleo_foundation/models/transfers/parameters/key.py +13 -0
  19. maleo_foundation-0.1.77/maleo_foundation/models/transfers/results/encryption/__init__.py +7 -0
  20. maleo_foundation-0.1.77/maleo_foundation/models/transfers/results/encryption/aes.py +18 -0
  21. maleo_foundation-0.1.77/maleo_foundation/models/transfers/results/encryption/rsa.py +12 -0
  22. maleo_foundation-0.1.77/maleo_foundation/models/transfers/results/key.py +16 -0
  23. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation.egg-info/PKG-INFO +1 -1
  24. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation.egg-info/SOURCES.txt +19 -0
  25. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/pyproject.toml +1 -1
  26. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/README.md +0 -0
  27. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/__init__.py +0 -0
  28. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/authentication.py +0 -0
  29. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/__init__.py +0 -0
  30. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/services/hash/__init__.py +0 -0
  31. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/services/hash/bcrypt.py +0 -0
  32. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/services/hash/hmac.py +0 -0
  33. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/services/hash/sha256.py +0 -0
  34. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/services/signature.py +0 -0
  35. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/client/services/token.py +0 -0
  36. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/constants.py +0 -0
  37. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/enums.py +0 -0
  38. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/__init__.py +0 -0
  39. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/client.py +0 -0
  40. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/general.py +0 -0
  41. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/hash.py +0 -0
  42. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/query.py +0 -0
  43. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/service.py +0 -0
  44. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/signature.py +0 -0
  45. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/expanded_types/token.py +0 -0
  46. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/extended_types.py +0 -0
  47. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/__init__.py +0 -0
  48. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/client/__init__.py +0 -0
  49. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/client/base.py +0 -0
  50. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/client/google/__init__.py +0 -0
  51. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/client/google/base.py +0 -0
  52. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/client/google/secret.py +0 -0
  53. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/client/google/storage.py +0 -0
  54. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/client/maleo.py +0 -0
  55. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/db.py +0 -0
  56. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/middleware.py +0 -0
  57. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/managers/service.py +0 -0
  58. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/middlewares/authentication.py +0 -0
  59. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/middlewares/base.py +0 -0
  60. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/middlewares/cors.py +0 -0
  61. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/__init__.py +0 -0
  62. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/responses.py +0 -0
  63. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/schemas/__init__.py +0 -0
  64. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/schemas/general.py +0 -0
  65. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/schemas/hash.py +0 -0
  66. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/schemas/parameter.py +0 -0
  67. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/schemas/result.py +0 -0
  68. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/schemas/signature.py +0 -0
  69. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/schemas/token.py +0 -0
  70. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/table.py +0 -0
  71. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/__init__.py +0 -0
  72. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/general/__init__.py +0 -0
  73. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/general/signature.py +0 -0
  74. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/general/token.py +0 -0
  75. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/__init__.py +0 -0
  76. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/client.py +0 -0
  77. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/general.py +0 -0
  78. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/hash/__init__.py +0 -0
  79. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/hash/bcrypt.py +0 -0
  80. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/hash/hmac.py +0 -0
  81. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/hash/sha256.py +0 -0
  82. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/service.py +0 -0
  83. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/signature.py +0 -0
  84. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/parameters/token.py +0 -0
  85. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/__init__.py +0 -0
  86. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/client/__init__.py +0 -0
  87. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/client/controllers/__init__.py +0 -0
  88. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/client/controllers/http.py +0 -0
  89. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/client/service.py +0 -0
  90. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/hash.py +0 -0
  91. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/service/__init__.py +0 -0
  92. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/service/controllers/__init__.py +0 -0
  93. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/service/controllers/rest.py +0 -0
  94. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/service/general.py +0 -0
  95. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/service/query.py +0 -0
  96. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/signature.py +0 -0
  97. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/models/transfers/results/token.py +0 -0
  98. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/types.py +0 -0
  99. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/__init__.py +0 -0
  100. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/controller.py +0 -0
  101. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/exceptions.py +0 -0
  102. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/extractor.py +0 -0
  103. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/formatter/__init__.py +0 -0
  104. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/formatter/case.py +0 -0
  105. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/loaders/__init__.py +0 -0
  106. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/loaders/json.py +0 -0
  107. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/loaders/key/__init__.py +0 -0
  108. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/loaders/key/rsa.py +0 -0
  109. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/loaders/yaml.py +0 -0
  110. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/logging.py +0 -0
  111. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/mergers.py +0 -0
  112. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation/utils/query.py +0 -0
  113. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation.egg-info/dependency_links.txt +0 -0
  114. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation.egg-info/requires.txt +0 -0
  115. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/maleo_foundation.egg-info/top_level.txt +0 -0
  116. {maleo_foundation-0.1.75 → maleo_foundation-0.1.77}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.75
3
+ Version: 0.1.77
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -2,13 +2,19 @@ from __future__ import annotations
2
2
  from maleo_foundation.managers.client.base import ClientManager
3
3
  from maleo_foundation.types import BaseTypes
4
4
  from maleo_foundation.utils.logging import SimpleConfig
5
+ from maleo_foundation.client.services.encryption import (
6
+ MaleoFoundationAESEncryptionClientService,
7
+ MaleoFoundationRSAEncryptionClientService
8
+ )
5
9
  from maleo_foundation.client.services.hash import (
6
10
  MaleoFoundationSHA256HashClientService,
7
11
  MaleoFoundationHMACHashClientService,
8
12
  MaleoFoundationBcryptHashClientService
9
13
  )
10
14
  from maleo_foundation.client.services import (
15
+ MaleoFoundationEncryptionServices,
11
16
  MaleoFoundationHashServices,
17
+ MaleoFoundationKeyClientService,
12
18
  MaleoFoundationSignatureClientService,
13
19
  MaleoFoundationTokenClientService,
14
20
  MaleoFoundationServices
@@ -24,6 +30,13 @@ class MaleoFoundationClientManager(ClientManager):
24
30
 
25
31
  def _initialize_services(self):
26
32
  super()._initialize_services()
33
+ aes_encryption_service = MaleoFoundationAESEncryptionClientService(logger=self._logger)
34
+ rsa_encryption_service = MaleoFoundationRSAEncryptionClientService(logger=self._logger)
35
+ encryption_services = MaleoFoundationEncryptionServices(
36
+ aes=aes_encryption_service,
37
+ rsa=rsa_encryption_service
38
+ )
39
+ key_service = MaleoFoundationKeyClientService(logger=self._logger)
27
40
  bcrypt_hash_service = MaleoFoundationBcryptHashClientService(logger=self._logger)
28
41
  hmac_hash_service = MaleoFoundationHMACHashClientService(logger=self._logger)
29
42
  sha256_hash_service = MaleoFoundationSHA256HashClientService(logger=self._logger)
@@ -35,9 +48,11 @@ class MaleoFoundationClientManager(ClientManager):
35
48
  signature_service = MaleoFoundationSignatureClientService(logger=self._logger)
36
49
  token_service = MaleoFoundationTokenClientService(logger=self._logger)
37
50
  self._services = MaleoFoundationServices(
51
+ encryption=encryption_services,
52
+ hash=hash_services,
53
+ key=key_service,
38
54
  signature=signature_service,
39
- token=token_service,
40
- hash=hash_services
55
+ token=token_service
41
56
  )
42
57
 
43
58
  @property
@@ -1,11 +1,15 @@
1
1
  from __future__ import annotations
2
2
  from pydantic import Field
3
3
  from maleo_foundation.managers.client.base import ClientServices
4
+ from maleo_foundation.client.services.encryption import MaleoFoundationEncryptionServices
4
5
  from maleo_foundation.client.services.hash import MaleoFoundationHashServices
6
+ from maleo_foundation.client.services.key import MaleoFoundationKeyClientService
5
7
  from maleo_foundation.client.services.signature import MaleoFoundationSignatureClientService
6
8
  from maleo_foundation.client.services.token import MaleoFoundationTokenClientService
7
9
 
8
10
  class MaleoFoundationServices(ClientServices):
11
+ encryption:MaleoFoundationEncryptionServices = Field(..., description="Encryption's services")
9
12
  hash:MaleoFoundationHashServices = Field(..., description="Hash's services")
13
+ key:MaleoFoundationKeyClientService = Field(..., description="Key's service")
10
14
  signature:MaleoFoundationSignatureClientService = Field(..., description="Signature's service")
11
15
  token:MaleoFoundationTokenClientService = Field(..., description="Token's service")
@@ -0,0 +1,9 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from maleo_foundation.managers.client.base import ClientServices
4
+ from maleo_foundation.client.services.encryption.aes import MaleoFoundationAESEncryptionClientService
5
+ from maleo_foundation.client.services.encryption.rsa import MaleoFoundationRSAEncryptionClientService
6
+
7
+ class MaleoFoundationEncryptionServices(ClientServices):
8
+ aes:MaleoFoundationAESEncryptionClientService = Field(..., description="AES encryption's service")
9
+ rsa:MaleoFoundationRSAEncryptionClientService = Field(..., description="RSA encryption's service")
@@ -0,0 +1,54 @@
1
+ import os
2
+ from base64 import b64decode, b64encode
3
+ from cryptography.hazmat.backends import default_backend
4
+ from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
5
+ from maleo_foundation.expanded_types.encryption.aes import BaseAESEncryptionResultsTypes
6
+ from maleo_foundation.managers.client.base import ClientService
7
+ from maleo_foundation.models.schemas.encryption import BaseEncryptionSchemas
8
+ from maleo_foundation.models.transfers.parameters.encryption.aes import BaseAESEncryptionParametersTransfers
9
+ from maleo_foundation.models.transfers.results.encryption.aes import EncryptData, BaseAESEncryptionResultsTransfers
10
+ from maleo_foundation.utils.exceptions import BaseExceptions
11
+
12
+ class MaleoFoundationAESEncryptionClientService(ClientService):
13
+ def encrypt(self, parameters:BaseAESEncryptionParametersTransfers.Encrypt) -> BaseAESEncryptionResultsTypes.Hash:
14
+ """Encrypt a plaintext using AES algorithm."""
15
+ @BaseExceptions.service_exception_handler(
16
+ operation="encrypting plaintext",
17
+ logger=self._logger,
18
+ fail_result_class=BaseAESEncryptionResultsTransfers.Fail
19
+ )
20
+ def _impl():
21
+ #* Define random key and initialization vector bytes
22
+ key_bytes = os.urandom(32)
23
+ initialization_vector_bytes = os.urandom(16)
24
+ #* Encrypt message with encryptor instance
25
+ cipher = Cipher(algorithms.AES(key_bytes), modes.CFB(initialization_vector_bytes), backend=default_backend())
26
+ encryptor = cipher.encryptor()
27
+ ciphertext = b64encode(encryptor.update(parameters.plaintext.encode()) + encryptor.finalize()).decode('utf-8')
28
+ #* Encode the results to base64 strings
29
+ key = b64encode(key_bytes).decode('utf-8')
30
+ initialization_vector = b64encode(initialization_vector_bytes).decode('utf-8')
31
+ data = EncryptData(key=key, initialization_vector=initialization_vector, ciphertext=ciphertext)
32
+ self._logger.info("Plaintext successfully encrypted")
33
+ return BaseAESEncryptionResultsTransfers.Encrypt(data=data)
34
+ return _impl()
35
+
36
+ def decrypt(self, parameters:BaseAESEncryptionParametersTransfers.Decrypt) -> BaseAESEncryptionResultsTypes.Decrypt:
37
+ """Decrypt a ciphertext using AES algorithm."""
38
+ @BaseExceptions.service_exception_handler(
39
+ operation="verify single encryption",
40
+ logger=self._logger,
41
+ fail_result_class=BaseAESEncryptionResultsTransfers.Fail
42
+ )
43
+ def _impl():
44
+ #* Decode base64-encoded AES key, IV, and encrypted message
45
+ key_bytes = b64decode(parameters.key)
46
+ initialization_vector_bytes = b64decode(parameters.initialization_vector)
47
+ #* Decrypt message with decryptor instance
48
+ cipher = Cipher(algorithms.AES(key_bytes), modes.CFB(initialization_vector_bytes), backend=default_backend())
49
+ decryptor = cipher.decryptor()
50
+ plaintext = decryptor.update(b64decode(parameters.ciphertext)) + decryptor.finalize()
51
+ data = BaseEncryptionSchemas.Plaintext(plaintext=plaintext)
52
+ self._logger.info("Ciphertext successfully decrypted")
53
+ return BaseAESEncryptionResultsTransfers.Decrypt(data=data)
54
+ return _impl()
@@ -0,0 +1,68 @@
1
+ from base64 import b64decode, b64encode
2
+ from Crypto.Cipher import PKCS1_OAEP
3
+ from Crypto.Hash import SHA256
4
+ from maleo_foundation.enums import BaseEnums
5
+ from maleo_foundation.expanded_types.encryption.rsa import BaseRSAEncryptionResultsTypes
6
+ from maleo_foundation.managers.client.base import ClientService
7
+ from maleo_foundation.models.schemas.encryption import BaseEncryptionSchemas
8
+ from maleo_foundation.models.transfers.parameters.encryption.rsa import BaseRSAEncryptionParametersTransfers
9
+ from maleo_foundation.models.transfers.results.encryption.rsa import BaseRSAEncryptionResultsTransfers
10
+ from maleo_foundation.utils.exceptions import BaseExceptions
11
+ from maleo_foundation.utils.loaders.key.rsa import RSAKeyLoader
12
+
13
+ class MaleoFoundationRSAEncryptionClientService(ClientService):
14
+ def encrypt(self, parameters:BaseRSAEncryptionParametersTransfers.Encrypt) -> BaseRSAEncryptionResultsTypes.Hash:
15
+ """Encrypt a plaintext using RSA algorithm."""
16
+ @BaseExceptions.service_exception_handler(
17
+ operation="encrypting plaintext",
18
+ logger=self._logger,
19
+ fail_result_class=BaseRSAEncryptionResultsTransfers.Fail
20
+ )
21
+ def _impl():
22
+ try:
23
+ public_key = RSAKeyLoader.load_with_pycryptodome(type=BaseEnums.KeyType.PUBLIC, extern_key=parameters.key)
24
+ except TypeError:
25
+ message = "Invalid key type"
26
+ description = "A public key must be used for encrypting a plaintext"
27
+ other = "Ensure the given key is of type public key"
28
+ return BaseRSAEncryptionResultsTransfers.Fail(message=message, description=description, other=other)
29
+ except Exception as e:
30
+ self._logger.error("Unexpected error occured while trying to import key:\n'%s'", str(e), exc_info=True)
31
+ message = "Invalid key"
32
+ description = "Unexpected error occured while trying to import key"
33
+ other = "Ensure given key is valid"
34
+ return BaseRSAEncryptionResultsTransfers.Fail(message=message, description=description, other=other)
35
+ cipher = PKCS1_OAEP.new(public_key, hashAlgo=SHA256) #* Initialize cipher with OAEP padding and SHA-256
36
+ ciphertext = b64encode(cipher.encrypt(parameters.plaintext.encode('utf-8'))).decode('utf-8') #* Encrypt the plaintext and return as base64-encoded string
37
+ data = BaseEncryptionSchemas.Ciphertext(ciphertext=ciphertext)
38
+ self._logger.info("Plaintext successfully encrypted")
39
+ return BaseRSAEncryptionResultsTransfers.Encrypt(data=data)
40
+ return _impl()
41
+
42
+ def decrypt(self, parameters:BaseRSAEncryptionParametersTransfers.Decrypt) -> BaseRSAEncryptionResultsTypes.Decrypt:
43
+ """Decrypt a ciphertext using RSA algorithm."""
44
+ @BaseExceptions.service_exception_handler(
45
+ operation="verify single encryption",
46
+ logger=self._logger,
47
+ fail_result_class=BaseRSAEncryptionResultsTransfers.Fail
48
+ )
49
+ def _impl():
50
+ try:
51
+ private_key = RSAKeyLoader.load_with_pycryptodome(type=BaseEnums.KeyType.PRIVATE, extern_key=parameters.key, passphrase=parameters.password)
52
+ except TypeError:
53
+ message = "Invalid key type"
54
+ description = "A private key must be used for decrypting a ciphertext"
55
+ other = "Ensure the given key is of type private key"
56
+ return BaseRSAEncryptionResultsTransfers.Fail(message=message, description=description, other=other)
57
+ except Exception as e:
58
+ self._logger.error("Unexpected error occured while trying to import key:\n'%s'", str(e), exc_info=True)
59
+ message = "Invalid key"
60
+ description = "Unexpected error occured while trying to import key"
61
+ other = "Ensure given key is valid"
62
+ return BaseRSAEncryptionResultsTransfers.Fail(message=message, description=description, other=other)
63
+ cipher = PKCS1_OAEP.new(private_key, hashAlgo=SHA256) #* Initialize cipher with OAEP padding and SHA-256
64
+ plaintext = cipher.decrypt(b64decode(parameters.ciphertext)) #* Decode the base64-encoded ciphertext and then decrypt
65
+ data = BaseEncryptionSchemas.Plaintext(plaintext=plaintext)
66
+ self._logger.info("Ciphertext successfully decrypted")
67
+ return BaseRSAEncryptionResultsTransfers.Decrypt(data=data)
68
+ return _impl()
@@ -0,0 +1,113 @@
1
+ from cryptography.hazmat.backends import default_backend
2
+ from cryptography.hazmat.primitives.asymmetric import rsa
3
+ from cryptography.hazmat.primitives import serialization
4
+ from maleo_foundation.expanded_types.key import BaseKeyResultsTypes
5
+ from maleo_foundation.managers.client.base import ClientService
6
+ from maleo_foundation.models.transfers.general.key import BaseKeyGeneralTransfers
7
+ from maleo_foundation.models.transfers.parameters.key import BaseKeyParametersTransfers
8
+ from maleo_foundation.models.transfers.results.key import BaseKeyResultsTransfers
9
+ from maleo_foundation.utils.exceptions import BaseExceptions
10
+
11
+ class MaleoFoundationKeyClientService(ClientService):
12
+ def create_private(self, parameters:BaseKeyParametersTransfers.CreatePrivateOrPair) -> BaseKeyResultsTypes.CreatePrivate:
13
+ """Create an RSA private key with X.509 encoding in .pem format."""
14
+ @BaseExceptions.service_exception_handler(
15
+ operation="creating private key",
16
+ logger=self._logger,
17
+ fail_result_class=BaseKeyResultsTransfers.Fail
18
+ )
19
+ def _impl():
20
+ #* Create private key
21
+ private_key = rsa.generate_private_key(
22
+ public_exponent=65537,
23
+ key_size=parameters.key_size,
24
+ backend=default_backend()
25
+ )
26
+
27
+ if parameters.password is None:
28
+ encryption_algorithm = serialization.NoEncryption()
29
+ else:
30
+ encryption_algorithm = serialization.BestAvailableEncryption(parameters.password.encode())
31
+
32
+ #* Serialize private key to PEM format
33
+ private_key_bytes = private_key.private_bytes(
34
+ encoding=serialization.Encoding.PEM,
35
+ format=serialization.PrivateFormat.PKCS8,
36
+ encryption_algorithm=encryption_algorithm
37
+ )
38
+
39
+ self._logger.info("Successfully created private key")
40
+ data = BaseKeyGeneralTransfers.PrivateKey(value=private_key_bytes.decode())
41
+ return BaseKeyResultsTransfers.CreatePrivate(data=data)
42
+ return _impl()
43
+
44
+ def create_public(self, parameters:BaseKeyParametersTransfers.CreatePublic) -> BaseKeyResultsTypes.CreatePublic:
45
+ """Create an RSA public key with X.509 encoding in .pem format."""
46
+ @BaseExceptions.service_exception_handler(
47
+ operation="creating public key",
48
+ logger=self._logger,
49
+ fail_result_class=BaseKeyResultsTransfers.Fail
50
+ )
51
+ def _impl():
52
+ #* Serialize private key
53
+ private_key_bytes = parameters.value.encode()
54
+ private_key = serialization.load_pem_private_key(
55
+ private_key_bytes,
56
+ password=parameters.password.encode() if parameters.password else None,
57
+ backend=default_backend()
58
+ )
59
+
60
+ public_key = private_key.public_key() #* Create public key
61
+
62
+ #* Serialize public key to PEM format
63
+ public_key_bytes = public_key.public_bytes(
64
+ encoding=serialization.Encoding.PEM,
65
+ format=serialization.PublicFormat.SubjectPublicKeyInfo
66
+ )
67
+
68
+ self._logger.info("Successfully created public key")
69
+ data = BaseKeyGeneralTransfers.PublicKey(value=public_key_bytes.decode())
70
+ return BaseKeyResultsTransfers.CreatePublic(data=data)
71
+ return _impl()
72
+
73
+ def create_pair(self, parameters:BaseKeyParametersTransfers.CreatePrivateOrPair) -> BaseKeyResultsTypes.CreatePair:
74
+ """Create an RSA key pair with X.509 encoding in .pem format."""
75
+ @BaseExceptions.service_exception_handler(
76
+ operation="creating key pair",
77
+ logger=self._logger,
78
+ fail_result_class=BaseKeyResultsTransfers.Fail
79
+ )
80
+ def _impl():
81
+ #* Create private key
82
+ private_key = rsa.generate_private_key(
83
+ public_exponent=65537,
84
+ key_size=parameters.key_size,
85
+ backend=default_backend()
86
+ )
87
+
88
+ if parameters.password is None:
89
+ encryption_algorithm = serialization.NoEncryption()
90
+ else:
91
+ encryption_algorithm = serialization.BestAvailableEncryption(parameters.password.encode())
92
+
93
+ #* Serialize private key to PEM format
94
+ private_key_bytes = private_key.private_bytes(
95
+ encoding=serialization.Encoding.PEM,
96
+ format=serialization.PrivateFormat.PKCS8,
97
+ encryption_algorithm=encryption_algorithm
98
+ )
99
+ private = BaseKeyGeneralTransfers.PrivateKey(value=private_key_bytes.decode())
100
+
101
+ public_key = private_key.public_key() #* Create public key
102
+
103
+ #* Serialize public key to PEM format
104
+ public_key_bytes = public_key.public_bytes(
105
+ encoding=serialization.Encoding.PEM,
106
+ format=serialization.PublicFormat.SubjectPublicKeyInfo
107
+ )
108
+ public = BaseKeyGeneralTransfers.PublicKey(value=public_key_bytes.decode())
109
+
110
+ self._logger.info("Successfully created key pair")
111
+ data = BaseKeyGeneralTransfers.KeyPair(private=private, public=public)
112
+ return BaseKeyResultsTransfers.CreatePair(data=data)
113
+ return _impl()
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+ from .aes import BaseAESEncryptionResultsTransfers
3
+ from .rsa import BaseRSAEncryptionResultsTransfers
4
+
5
+ class BaseEncryptionResultsTypes:
6
+ AES = BaseAESEncryptionResultsTransfers
7
+ RSA = BaseRSAEncryptionResultsTransfers
@@ -0,0 +1,13 @@
1
+ from typing import Union
2
+ from maleo_foundation.models.transfers.results.encryption.aes import BaseAESEncryptionResultsTransfers
3
+
4
+ class BaseAESEncryptionResultsTypes:
5
+ Encrypt = Union[
6
+ BaseAESEncryptionResultsTransfers.Fail,
7
+ BaseAESEncryptionResultsTransfers.Encrypt
8
+ ]
9
+
10
+ Decrypt = Union[
11
+ BaseAESEncryptionResultsTransfers.Fail,
12
+ BaseAESEncryptionResultsTransfers.Decrypt
13
+ ]
@@ -0,0 +1,13 @@
1
+ from typing import Union
2
+ from maleo_foundation.models.transfers.results.encryption.rsa import BaseRSAEncryptionResultsTransfers
3
+
4
+ class BaseRSAEncryptionResultsTypes:
5
+ Encrypt = Union[
6
+ BaseRSAEncryptionResultsTransfers.Fail,
7
+ BaseRSAEncryptionResultsTransfers.Encrypt
8
+ ]
9
+
10
+ Decrypt = Union[
11
+ BaseRSAEncryptionResultsTransfers.Fail,
12
+ BaseRSAEncryptionResultsTransfers.Decrypt
13
+ ]
@@ -0,0 +1,18 @@
1
+ from typing import Union
2
+ from maleo_foundation.models.transfers.results.key import BaseKeyResultsTransfers
3
+
4
+ class BaseKeyResultsTypes:
5
+ CreatePrivate = Union[
6
+ BaseKeyResultsTransfers.Fail,
7
+ BaseKeyResultsTransfers.CreatePrivate
8
+ ]
9
+
10
+ CreatePublic = Union[
11
+ BaseKeyResultsTransfers.Fail,
12
+ BaseKeyResultsTransfers.CreatePublic
13
+ ]
14
+
15
+ CreatePair = Union[
16
+ BaseKeyResultsTransfers.Fail,
17
+ BaseKeyResultsTransfers.CreatePair
18
+ ]
@@ -0,0 +1,18 @@
1
+ from pydantic import BaseModel, Field
2
+ from maleo_foundation.types import BaseTypes
3
+
4
+ class BaseEncryptionSchemas:
5
+ class Key(BaseModel):
6
+ key:str = Field(..., description="Key")
7
+
8
+ class Password(BaseModel):
9
+ password:BaseTypes.OptionalString = Field(None, min_length=32, max_length=1024, description="password")
10
+
11
+ class InitializationVector(BaseModel):
12
+ initialization_vector:str = Field(..., description="Initialization vector")
13
+
14
+ class Plaintext(BaseModel):
15
+ plaintext:str = Field(..., description="Plaintext")
16
+
17
+ class Ciphertext(BaseModel):
18
+ ciphertext:str = Field(..., description="Ciphertext")
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from pydantic import BaseModel, Field
3
+ from maleo_foundation.enums import BaseEnums
4
+ from maleo_foundation.types import BaseTypes
5
+
6
+ class BaseKeySchemas:
7
+ class KeySize(BaseModel):
8
+ key_size:int = Field(2048, ge=2048, le=16384, description="Key's size")
9
+
10
+ class Password(BaseModel):
11
+ password:BaseTypes.OptionalString = Field(None, min_length=32, max_length=1024, description="password")
12
+
13
+ class Key(BaseModel):
14
+ type:BaseEnums.KeyType = Field(..., description="Key's type")
15
+ value:str = Field(..., description="Key's value")
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+ from pydantic import BaseModel, Field
3
+ from maleo_foundation.enums import BaseEnums
4
+ from maleo_foundation.models.schemas.key import BaseKeySchemas
5
+
6
+ class BaseKeyGeneralTransfers:
7
+ class PrivateKey(BaseKeySchemas.Key):
8
+ type:BaseEnums.KeyType = Field(BaseEnums.KeyType.PRIVATE, description="Private key's type")
9
+
10
+ class PublicKey(BaseKeySchemas.Key):
11
+ type:BaseEnums.KeyType = Field(BaseEnums.KeyType.PUBLIC, description="Public key's type")
12
+
13
+ class KeyPair(BaseModel):
14
+ private:BaseKeyGeneralTransfers.PrivateKey = Field(..., description="Private key's data")
15
+ public:BaseKeyGeneralTransfers.PublicKey = Field(..., description="Public key's data")
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+ from .aes import BaseAESEncryptionParametersTransfers
3
+ from .rsa import BaseRSAEncryptionParametersTransfers
4
+
5
+ class BaseEncryptionParametersTransfers:
6
+ AES = BaseAESEncryptionParametersTransfers
7
+ RSA = BaseRSAEncryptionParametersTransfers
@@ -0,0 +1,13 @@
1
+ from maleo_foundation.models.schemas.encryption import BaseEncryptionSchemas
2
+
3
+ class BaseAESEncryptionParametersTransfers:
4
+ class Encrypt(
5
+ BaseEncryptionSchemas.Plaintext,
6
+ BaseEncryptionSchemas.Key
7
+ ): pass
8
+
9
+ class Decrypt(
10
+ BaseEncryptionSchemas.Ciphertext,
11
+ BaseEncryptionSchemas.InitializationVector,
12
+ BaseEncryptionSchemas.Key
13
+ ): pass
@@ -0,0 +1,12 @@
1
+ from maleo_foundation.models.schemas.encryption import BaseEncryptionSchemas
2
+
3
+ class BaseRSAEncryptionParametersTransfers:
4
+ class Encrypt(
5
+ BaseEncryptionSchemas.Plaintext,
6
+ BaseEncryptionSchemas.Key
7
+ ): pass
8
+
9
+ class Decrypt(
10
+ BaseEncryptionSchemas.Ciphertext,
11
+ BaseEncryptionSchemas.Key
12
+ ): pass
@@ -0,0 +1,13 @@
1
+ from maleo_foundation.models.schemas.key import BaseKeySchemas
2
+ from maleo_foundation.models.transfers.general.key import BaseKeyGeneralTransfers
3
+
4
+ class BaseKeyParametersTransfers:
5
+ class CreatePrivateOrPair(
6
+ BaseKeySchemas.Password,
7
+ BaseKeySchemas.KeySize
8
+ ): pass
9
+
10
+ class CreatePublic(
11
+ BaseKeySchemas.Password,
12
+ BaseKeyGeneralTransfers.PrivateKey
13
+ ): pass
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+ from .aes import BaseAESEncryptionResultsTransfers
3
+ from .rsa import BaseRSAEncryptionResultsTransfers
4
+
5
+ class BaseEncryptionResultsTransfers:
6
+ AES = BaseAESEncryptionResultsTransfers
7
+ RSA = BaseRSAEncryptionResultsTransfers
@@ -0,0 +1,18 @@
1
+ from pydantic import Field
2
+ from maleo_foundation.models.transfers.results.service.general import BaseServiceGeneralResultsTransfers
3
+ from maleo_foundation.models.schemas.encryption import BaseEncryptionSchemas
4
+
5
+ class EncryptData(
6
+ BaseEncryptionSchemas.Ciphertext,
7
+ BaseEncryptionSchemas.InitializationVector,
8
+ BaseEncryptionSchemas.Key
9
+ ): pass
10
+
11
+ class BaseAESEncryptionResultsTransfers:
12
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
13
+
14
+ class Encrypt(BaseServiceGeneralResultsTransfers.SingleData):
15
+ data:EncryptData = Field(..., description="Single encryption data")
16
+
17
+ class Decrypt(BaseServiceGeneralResultsTransfers.SingleData):
18
+ data:BaseEncryptionSchemas.Plaintext = Field(..., description="Single decryption data")
@@ -0,0 +1,12 @@
1
+ from pydantic import Field
2
+ from maleo_foundation.models.transfers.results.service.general import BaseServiceGeneralResultsTransfers
3
+ from maleo_foundation.models.schemas.encryption import BaseEncryptionSchemas
4
+
5
+ class BaseRSAEncryptionResultsTransfers:
6
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
7
+
8
+ class Encrypt(BaseServiceGeneralResultsTransfers.SingleData):
9
+ data:BaseEncryptionSchemas.Ciphertext = Field(..., description="Single encryption data")
10
+
11
+ class Decrypt(BaseServiceGeneralResultsTransfers.SingleData):
12
+ data:BaseEncryptionSchemas.Plaintext = Field(..., description="Single decryption data")
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+ from pydantic import Field
3
+ from maleo_foundation.models.transfers.results.service.general import BaseServiceGeneralResultsTransfers
4
+ from maleo_foundation.models.transfers.general.key import BaseKeyGeneralTransfers
5
+
6
+ class BaseKeyResultsTransfers:
7
+ class Fail(BaseServiceGeneralResultsTransfers.Fail): pass
8
+
9
+ class CreatePrivate(BaseServiceGeneralResultsTransfers.SingleData):
10
+ data:BaseKeyGeneralTransfers.PrivateKey = Field(..., description="Private key data")
11
+
12
+ class CreatePublic(BaseServiceGeneralResultsTransfers.SingleData):
13
+ data:BaseKeyGeneralTransfers.PublicKey = Field(..., description="Private key data")
14
+
15
+ class CreatePair(BaseServiceGeneralResultsTransfers.SingleData):
16
+ data:BaseKeyGeneralTransfers.KeyPair = Field(..., description="Key pair data")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.75
3
+ Version: 0.1.77
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -14,8 +14,12 @@ maleo_foundation.egg-info/top_level.txt
14
14
  maleo_foundation/client/__init__.py
15
15
  maleo_foundation/client/manager.py
16
16
  maleo_foundation/client/services/__init__.py
17
+ maleo_foundation/client/services/key.py
17
18
  maleo_foundation/client/services/signature.py
18
19
  maleo_foundation/client/services/token.py
20
+ maleo_foundation/client/services/encryption/__init__.py
21
+ maleo_foundation/client/services/encryption/aes.py
22
+ maleo_foundation/client/services/encryption/rsa.py
19
23
  maleo_foundation/client/services/hash/__init__.py
20
24
  maleo_foundation/client/services/hash/bcrypt.py
21
25
  maleo_foundation/client/services/hash/hmac.py
@@ -24,10 +28,14 @@ maleo_foundation/expanded_types/__init__.py
24
28
  maleo_foundation/expanded_types/client.py
25
29
  maleo_foundation/expanded_types/general.py
26
30
  maleo_foundation/expanded_types/hash.py
31
+ maleo_foundation/expanded_types/key.py
27
32
  maleo_foundation/expanded_types/query.py
28
33
  maleo_foundation/expanded_types/service.py
29
34
  maleo_foundation/expanded_types/signature.py
30
35
  maleo_foundation/expanded_types/token.py
36
+ maleo_foundation/expanded_types/encryption/__init__.py
37
+ maleo_foundation/expanded_types/encryption/aes.py
38
+ maleo_foundation/expanded_types/encryption/rsa.py
31
39
  maleo_foundation/managers/__init__.py
32
40
  maleo_foundation/managers/db.py
33
41
  maleo_foundation/managers/middleware.py
@@ -46,34 +54,45 @@ maleo_foundation/models/__init__.py
46
54
  maleo_foundation/models/responses.py
47
55
  maleo_foundation/models/table.py
48
56
  maleo_foundation/models/schemas/__init__.py
57
+ maleo_foundation/models/schemas/encryption.py
49
58
  maleo_foundation/models/schemas/general.py
50
59
  maleo_foundation/models/schemas/hash.py
60
+ maleo_foundation/models/schemas/key.py
51
61
  maleo_foundation/models/schemas/parameter.py
52
62
  maleo_foundation/models/schemas/result.py
53
63
  maleo_foundation/models/schemas/signature.py
54
64
  maleo_foundation/models/schemas/token.py
55
65
  maleo_foundation/models/transfers/__init__.py
56
66
  maleo_foundation/models/transfers/general/__init__.py
67
+ maleo_foundation/models/transfers/general/key.py
57
68
  maleo_foundation/models/transfers/general/signature.py
58
69
  maleo_foundation/models/transfers/general/token.py
59
70
  maleo_foundation/models/transfers/parameters/__init__.py
60
71
  maleo_foundation/models/transfers/parameters/client.py
61
72
  maleo_foundation/models/transfers/parameters/general.py
73
+ maleo_foundation/models/transfers/parameters/key.py
62
74
  maleo_foundation/models/transfers/parameters/service.py
63
75
  maleo_foundation/models/transfers/parameters/signature.py
64
76
  maleo_foundation/models/transfers/parameters/token.py
77
+ maleo_foundation/models/transfers/parameters/encryption/__init__.py
78
+ maleo_foundation/models/transfers/parameters/encryption/aes.py
79
+ maleo_foundation/models/transfers/parameters/encryption/rsa.py
65
80
  maleo_foundation/models/transfers/parameters/hash/__init__.py
66
81
  maleo_foundation/models/transfers/parameters/hash/bcrypt.py
67
82
  maleo_foundation/models/transfers/parameters/hash/hmac.py
68
83
  maleo_foundation/models/transfers/parameters/hash/sha256.py
69
84
  maleo_foundation/models/transfers/results/__init__.py
70
85
  maleo_foundation/models/transfers/results/hash.py
86
+ maleo_foundation/models/transfers/results/key.py
71
87
  maleo_foundation/models/transfers/results/signature.py
72
88
  maleo_foundation/models/transfers/results/token.py
73
89
  maleo_foundation/models/transfers/results/client/__init__.py
74
90
  maleo_foundation/models/transfers/results/client/service.py
75
91
  maleo_foundation/models/transfers/results/client/controllers/__init__.py
76
92
  maleo_foundation/models/transfers/results/client/controllers/http.py
93
+ maleo_foundation/models/transfers/results/encryption/__init__.py
94
+ maleo_foundation/models/transfers/results/encryption/aes.py
95
+ maleo_foundation/models/transfers/results/encryption/rsa.py
77
96
  maleo_foundation/models/transfers/results/service/__init__.py
78
97
  maleo_foundation/models/transfers/results/service/general.py
79
98
  maleo_foundation/models/transfers/results/service/query.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo_foundation"
7
- version = "0.1.75"
7
+ version = "0.1.77"
8
8
  description = "Foundation package for Maleo"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }