Skip to main content

A encrypt and decrypt module for Python.

Project description

iksk

基于Python的高级加密算法

快速入门

参数 解释 调用方法
decrypt 解密 decrypt(value=加密字符串, salt=盐值 , mode=[参数设置], sn=相似度 如有)
encrypt 加密 decrypt(value=字符串, salt=盐值 , mode=[参数设置])

模式设置

value: 字符串
salt: 盐值
mode: [a,b,c,d,e]

a,b,c,d,e 仅供方便理解,非调用所需

  • a: 颠倒单数还是双数? 0=双数 1=双数
  • b: 加密颠倒单数还是双数? 0=双数 1=双数
  • c: 字符串交换间隔 (最小: 1),实际结果*2
  • d: 设置字母偏移 (偏移量不建议太大,适量数字大小即可)
  • e: 如您需要时使用相似度算法,请设置1,如不需要,请设置0

提示: 使用相似度算法后,会返回两条数据: [结果,相似度],解密时请带上相似度

原理解释

  1. 计算初始相似度 (salt+value+salt模式) [无论是否开启相似度]
  2. 颠倒字符串
  3. 字符串字母偏移
  4. 块级加密字符串
  5. 加密颠倒字符串
  6. 自定义交换字符串
  7. 块级加密字符串
  8. 执行相似度计算 [如启用]
  9. 返回结果

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

iksk-1.0.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file iksk-1.0.tar.gz.

File metadata

  • Download URL: iksk-1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for iksk-1.0.tar.gz
Algorithm Hash digest
SHA256 becc472c6b393dc447dde1c1db8dd6c69c80aa6df3eda2b141c727e37ba56a59
MD5 1324618a0d57007c2f9cd9c0b3c58182
BLAKE2b-256 b0fa8d2a2672bcaca0b03ed4aae6181fe6840c260fa49a75baf449560bc9014b

See more details on using hashes here.

Supported by

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