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.1.tar.gz (5.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: iksk-1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 03cb8a7cd9c8942ee14b67b33782da9158ef545058efea9260d96e71bac9abfd
MD5 a1d2def4d2cd944be2a5c01cb7ebef8e
BLAKE2b-256 b2cbb394cd0ea8ec55aeaa7536ce994863fe3086d04b9366a2c665af66fc0b22

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