https://github.com/one2r/simplerailfencecipher
简单栅栏加密解密器
https://github.com/one2r/simplerailfencecipher
go golang railfence
Last synced: 8 months ago
JSON representation
简单栅栏加密解密器
- Host: GitHub
- URL: https://github.com/one2r/simplerailfencecipher
- Owner: One2r
- License: mit
- Created: 2016-01-07T08:59:07.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T06:06:22.000Z (over 8 years ago)
- Last Synced: 2025-01-02T16:55:01.076Z (9 months ago)
- Topics: go, golang, railfence
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleRailFenceCipher
简单栅栏加密解密器——Go语言版Go版本:1.5
Go包依赖:
github.com/codegangsta/cli# Features
## 加密
./SimpleRailFenceCipher encode "明文" [栅栏数]
加密时在不能均匀分栏的情况下,将会在明文末尾补充“.”。
### 示例
./SimpleRailFenceCipher encode "the anwser is wctf{C01umnar},if u is a big new,u can help us think more question,tks." 17========Simple Rail Fence Cipher========
输入明文为:the anwser is wctf{C01umnar},if u is a big new,u can help us think more question,tks.
加密栅栏数为:17
加密结果:tn c0afsiwal kes,hwit1r g,npt ttessfu}ua u hmqik e {m, n huiouosarwCniibecesnren.## 解密
./SimpleRailFenceCipher decode "密文"
### 示例
./SimpleRailFenceCipher decode "tn c0afsiwal kes,hwit1r g,npt ttessfu}ua u hmqik e {m, n huiouosarwCniibecesnren."========Simple Rail Fence Cipher========
密文为:tn c0afsiwal kes,hwit1r g,npt ttessfu}ua u hmqik e {m, n huiouosarwCniibecesnren.
解密情况:
1) 5栏栅栏解密:
taastg su km uwbnnfl,1, sah ,hoCer s hrntf me usncecikw ptuuq iaien0wei te} i{noris.
2) 17栏栅栏解密:
the anwser is wctf{C01umnar},if u is a big new,u can help us think more question,tks.# LICENSE
Licensed under the MIT license