Skip to content

Commit

Permalink
Move crypto_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nanomad committed Jan 20, 2024
1 parent 09bb592 commit b1790c0
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/saic_ismart_client_ng/api/login/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import httpx

from crypto_utils import sha1_hex_digest
from saic_ismart_client_ng.crypto_utils import sha1_hex_digest
from saic_ismart_client_ng.api.base import AbstractSaicApi
from saic_ismart_client_ng.api.login.schema import LoginResp

Expand Down
2 changes: 1 addition & 1 deletion src/saic_ismart_client_ng/api/vehicle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tenacity

from crypto_utils import sha256_hex_digest
from saic_ismart_client_ng.crypto_utils import sha256_hex_digest
from saic_ismart_client_ng.api.base import AbstractSaicApi
from saic_ismart_client_ng.api.vehicle.schema import VehicleListResp, AlarmSwitchResp, AlarmSwitchReq, \
VehicleStatusResp, \
Expand Down
2 changes: 1 addition & 1 deletion src/saic_ismart_client_ng/api/vehicle_charging/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from crypto_utils import sha256_hex_digest
from saic_ismart_client_ng.crypto_utils import sha256_hex_digest
from saic_ismart_client_ng.api.base import AbstractSaicApi
from saic_ismart_client_ng.api.vehicle_charging.schema import ChargeInfoResp, ChargeStatusResp, ChargingControlRequest, \
ChargingControlResp, ScheduledChargingRequest, ChargingPtcHeatRequest, ChargingSettingRequest, ChrgPtcHeatResp, \
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/saic_ismart_client_ng/net/client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import httpx

from crypto_utils import md5_hex_digest, encrypt_aes_cbc_pkcs5_padding
from saic_ismart_client_ng.crypto_utils import md5_hex_digest, encrypt_aes_cbc_pkcs5_padding
from saic_ismart_client_ng.model import SaicApiConfiguration
from saic_ismart_client_ng.net.security import get_app_verification_string, decrypt_response
from saic_ismart_client_ng.net.utils import update_request_with_content
Expand Down
2 changes: 1 addition & 1 deletion src/saic_ismart_client_ng/net/client/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import httpx

from crypto_utils import md5_hex_digest, encrypt_aes_cbc_pkcs5_padding
from saic_ismart_client_ng.crypto_utils import md5_hex_digest, encrypt_aes_cbc_pkcs5_padding
from saic_ismart_client_ng.net.security import get_app_verification_string, decrypt_response
from saic_ismart_client_ng.net.utils import update_request_with_content
from saic_ismart_client_ng.model import SaicApiConfiguration
Expand Down
2 changes: 1 addition & 1 deletion src/saic_ismart_client_ng/net/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from httpx import Response

from crypto_utils import md5_hex_digest, encrypt_aes_cbc_pkcs5_padding, decrypt_aes_cbc_pkcs5_padding
from saic_ismart_client_ng.crypto_utils import md5_hex_digest, encrypt_aes_cbc_pkcs5_padding, decrypt_aes_cbc_pkcs5_padding


def get_app_verification_string(
Expand Down

0 comments on commit b1790c0

Please sign in to comment.