[OND211-2329]: Updated imports from Cryto to Cryptodome in all files.
This commit is contained in:
parent
28029bdbb8
commit
0879b2d99d
4 changed files with 8 additions and 8 deletions
|
|
@ -18,8 +18,8 @@ import argparse
|
|||
import base64
|
||||
from cmd import Cmd
|
||||
|
||||
from Crypto.PublicKey import RSA
|
||||
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
|
||||
from Cryptodome.PublicKey import RSA
|
||||
from Cryptodome.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
|
||||
from typing import Dict, List, Any
|
||||
from lark import Lark, Transformer, Tree
|
||||
import requests
|
||||
|
|
|
|||
|
|
@ -43,8 +43,8 @@ def decrypt(line):
|
|||
|
||||
def decrypt2(crypt_text):
|
||||
from base64 import b64decode, b16decode
|
||||
from Crypto.Cipher import PKCS1_v1_5 as Cipher_PKCS1_v1_5
|
||||
from Crypto.PublicKey import RSA
|
||||
from Cryptodome.Cipher import PKCS1_v1_5 as Cipher_PKCS1_v1_5
|
||||
from Cryptodome.PublicKey import RSA
|
||||
decode_data = b64decode(crypt_text)
|
||||
if len(decode_data) == 127:
|
||||
hex_fixed = '00' + decode_data.hex()
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ from typing import Any, Dict, Optional
|
|||
|
||||
import pytest
|
||||
import requests
|
||||
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
|
||||
from Crypto.PublicKey import RSA
|
||||
from Cryptodome.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
|
||||
from Cryptodome.PublicKey import RSA
|
||||
|
||||
from configs import EMAIL, HOST_ADDRESS, VERSION, ZHIPU_AI_API_KEY
|
||||
from libs.auth import RAGFlowWebApiAuth
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ from pathlib import Path
|
|||
from typing import Any
|
||||
|
||||
import pytest
|
||||
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
|
||||
from Crypto.PublicKey import RSA
|
||||
from Cryptodome.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
|
||||
from Cryptodome.PublicKey import RSA
|
||||
|
||||
from common import get_user_info
|
||||
from libs.auth import RAGFlowWebApiAuth
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue