siphan 0.1.1

A encode & decode lib
Documentation
  • Coverage
  • 56.52%
    13 out of 23 items documented0 out of 10 items with examples
  • Size
  • Source code size: 15.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.53 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • shawroger

siphan

一个简单的加密库,与一般的加密库不同,Siphan 可以保证其安全性

基本思路

Siphan 的出发点是加密中最基本的凯撒加密法,即生成内置字典的一个随机排序进行比对替换加密。

为了更提升安全性,Siphan 还针对字符不同淡定位置再次进行偏移,如果是 UTF8 字符,还将进行解码编码运算,最后生成一个乱序的字典表和一个密文。

原理图

安全性论证

Siphan 内置了 84 个字符,安装原理加密,可以生成的密钥共有 84! 种类,这是一个 127 位数,而且在采用了 UTF8 编码之后,密钥不正确将无法被解码,更保证了安全性。