Skip to main content

cache aes decrypter

Project description

##基于redis的AES加解密工具包

2/4/2020 Bruce 0.8.2 初始版本
2/5/2020 Bruce 0.8.3 补充调用及配置说明,更新引用方式

###使用方法: ####1、配置全局变量
变量名|类型|用途|示例 REDIS_ADDRESS|字符串|redis服务器地址,需要带上ip、端口、库号|127.0.0.1:6379/1 COMMON_SALT|字符串|解密密钥|0648ea5562efffee APPLICATION_NAME|字符串|cad应用名|mms APP_CONFIG_PREFIX|字符串|cad配置前缀|app-config

####2、引入模块
from cad.cad_util import CadUtil

####3、使用
util = CadUtil()
res = util.get(ak)

ak为应用对应的ak键
res 即得到的解析结果
结果格式如下
{ "ak": "0648ea5562efffee", "sk": "1e058d312eb61448", "permissions": { "app_1": ["auth_1", "auth_2"], "app_2': ["auth_3", "auth_4"] } }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cad-0.8.4.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page