python 静态网站生成_oub: Python 静态博客生成器

Copyright (c) 2020, uncle-lu

All rights reserved.

Redistribution and use in source and binary forms, with or without modification,

are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this

list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this

list of conditions and the following disclaimer in the documentation and/or

other materials provided with the distribution.

Neither the name of the {organization} nor the names of its

contributors may be used to endorse or promote products derived from

this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND

ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED

WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE

DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR

ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES

(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;

LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON

ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT

(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS

SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
翻译 data = r'{"fingerprint":"{\"datatype\":\"aimt_datas\",\"id_ver\":\"Android_1.0.1\",\"rdata\":\"JKt4\/rsQHbhI67UlvrsN5nMOIpiztrz2ApPQY9KiMFqKykAngZo0HJ3ltCznejxiWLEG9SVy3P\/tIzsOb+kxhFQpth4QCZ+xWlYobyHAdCF6m9OQw0Ixgb1qPKj7lQbb4nv6w60kUuSd+sFS8m288ZF2XbChjAWKhMwGog4Js+4HPmfHegbRAoF2Q\/GfYXi\/Z8NDwZcG1EMYVghGHS11gplAUzWWZt0Q8PVJT+ud4gp068Fv1x9A52a\/vc2XVqcCZ6lyOEPzQRoFHv0OO3c9MX5R05yrnD70tbaKh0iK0QzVaSKAx11uGTa+Al\/C2YXp+A3jcGXcIQTWbniFp1wHog\/DJhBd4p5jDSmL0UJJ1vwF3jv7imwD\/\/8kHGbkzqBHKfVD2gou0LqF5\/1MAYJXzGHNXS8DSzC1Xwne6OFVNkhhtHxODz\/k03ymOpppQ3p1IZqdJ7NFTEEFtSo34+Ec5FmW7qxUW3JAR7ovVcbBYOzr+1HjU2ed0DTE7\/NeLPJw2N2owFViCctJ1q4XBq8lKkAEHponH2MAPsk255xnG1N4YRQiu2TZyfh4Xj7piAMRHJTY6DmkoCbkHtUIA1JCdaua9TJ9aKt8G+4\/xkHDTI0aH06niN4dGzxh3IHTnjSIj0Gt3JhertANNa4MJN7T0\/ZMWmonr1YuOm+FfNsDOdZ8yePiqxJTV3DBXj0bsePc+wufBktg0gVI9xkyWUhBhAjay\/vTAfP1\/6p3+oUB+xSFTcYQcusjAnvN5hapwHP8mhisZYn0vRzc21hppdNABQLi1b6IFIkvPlbpbfVEJfLB2HgK7\/qHaCYp+osOj4gc\",\"rk\":\"UaywI2vLDuU0ZLrPZIRCADXL6gQhRq4xFSul8wAGYcOZdEkUpw1\/x9XOCcJ0NNnxLaRoSLGg42FOfsL6KonaQ9cChmBd2aNI9049gv+Rild3c+qtNqbnLcY+8zR6qaI5CHcLYi6blBY8Yn7Ul6R9I24DpfcM1j9VjSee4Dpxp84=\"}","key-version":"1678779904"}' print(json.loads(data)) data = aes_en(data, key='0199bec97dfa5e0d', iv='0199bec97dfa5e0d') print(data) # print(json.loads(data['fingerprint'])) response = requests.post(url, headers=headers, data=data) print(aes_de(response.text, key='0199bec97dfa5e0d', iv='0199bec97dfa5e0d').decode()) res = json.loads(aes_de(response.text, key='0199bec97dfa5e0d', iv='0199bec97dfa5e0d').decode()) global key, key_version, iv key = res['data']['key'] key_version = res['data']['key-version'] iv = key return key, key_version
07-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值