mirror of
https://github.com/langgenius/dify.git
synced 2025-12-25 01:00:42 -05:00
bump version to 0.5.3 (#2306)
This commit is contained in:
@@ -20,16 +20,17 @@
|
||||
# SOFTWARE.
|
||||
# ===================================================================
|
||||
|
||||
from Crypto.Signature.pss import MGF1
|
||||
import Crypto.Hash.SHA1
|
||||
|
||||
from Crypto.Util.py3compat import bord, _copy_bytes
|
||||
import Crypto.Util.number
|
||||
from Crypto.Util.number import ceil_div, bytes_to_long, long_to_bytes
|
||||
from Crypto.Util.strxor import strxor
|
||||
from Crypto import Random
|
||||
from hashlib import sha1
|
||||
|
||||
import Crypto.Hash.SHA1
|
||||
import Crypto.Util.number
|
||||
import gmpy2
|
||||
from Crypto import Random
|
||||
from Crypto.Signature.pss import MGF1
|
||||
from Crypto.Util.number import bytes_to_long, ceil_div, long_to_bytes
|
||||
from Crypto.Util.py3compat import _copy_bytes, bord
|
||||
from Crypto.Util.strxor import strxor
|
||||
|
||||
|
||||
class PKCS1OAEP_Cipher:
|
||||
"""Cipher object for PKCS#1 v1.5 OAEP.
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
import hashlib
|
||||
|
||||
import libs.gmpy2_pkcs10aep_cipher as gmpy2_pkcs10aep_cipher
|
||||
from Crypto.Cipher import AES
|
||||
from Crypto.PublicKey import RSA
|
||||
from Crypto.Random import get_random_bytes
|
||||
from extensions.ext_redis import redis_client
|
||||
from extensions.ext_storage import storage
|
||||
|
||||
import libs.gmpy2_pkcs10aep_cipher as gmpy2_pkcs10aep_cipher
|
||||
|
||||
def generate_key_pair(tenant_id):
|
||||
private_key = RSA.generate(2048)
|
||||
|
||||
Reference in New Issue
Block a user