do/kodo/issues"> Issues 0 Pull Requests 0 Commits 621 Releases 0

No Description

rsalg.py 1016B

    # -*- coding: utf-8 -*- import base64 import rsa from CodeConvert import CodeConvert as cc pubkey = rsa.PublicKey(7733936986002684982484845608354489436048239676995253266549456282870195715569430535348099548536388503919509506510435040149560886821029985877148893951171111, 65537) privkey = rsa.PrivateKey(7733936986002684982484845608354489436048239676995253266549456282870195715569430535348099548536388503919509506510435040149560886821029985877148893951171111, 65537, 316971401565576878144472516350155768882090601834219605321449556369521730928872332388800749109622843453327077688969025635980606763507018292148749534091473, 4517492317789178911663214752269837474466539823144998211438927363654134055916886851, 1711997816918835594017245862832442114582648667392542139046338517030653261) def rsa_encrypt(plaintext): return base64.urlsafe_b64encode(rsa.encrypt(cc.Convert2Utf8(plaintext), pubkey)) def rsa_decrypt(ciphertext): return rsa.decrypt(base64.urlsafe_b64decode(cc.Convert2Utf8(ciphertext)), privkey)
kodo - Gogs: Go Git Service

暫無描述

Brightcells: 018d52f61d Update package django_xxx 8 年之前
..
migrations a7cbbf15a7 Update max_length for CharField 8 年之前
__init__.py 7a17d0fb90 add api wxpay & add redis relative 10 年之前
admin.py 018d52f61d Update package django_xxx 8 年之前
models.py 018d52f61d Update package django_xxx 8 年之前
tests.py fabef63211 set line_length=200 for isort 10 年之前
views.py 018d52f61d Update package django_xxx 8 年之前