Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
classical ciphersin python
Search
wwwy3y3
May 18, 2014
Programming
0
62
classical ciphersin python
classical ciphersin python
wwwy3y3
May 18, 2014
Tweet
Share
More Decks by wwwy3y3
See All by wwwy3y3
How Canner.io Build GraphQL for CMS
wwwy3y3
0
1.2k
React server-side render nightmare gone
wwwy3y3
0
650
spark serialization
wwwy3y3
0
190
nodeJS 入門警戒 @wheelLab
wwwy3y3
2
240
Other Decks in Programming
See All in Programming
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
970
ThorVG Viewer In VS Code
nors
0
760
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
960
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
4
310
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
今から始めるClaude Code超入門
448jp
7
8.4k
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
CSC307 Lecture 02
javiergs
PRO
1
770
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
680
Oxlint JS plugins
kazupon
1
730
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
250
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.5k
Featured
See All Featured
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
290
Evolving SEO for Evolving Search Engines
ryanjones
0
120
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Navigating Weather and Climate Data
rabernat
0
100
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
120
Exploring anti-patterns in Rails
aemeredith
2
250
Typedesign – Prime Four
hannesfritz
42
2.9k
The Curse of the Amulet
leimatthew05
1
8.2k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
97
Transcript
ciphers using python @wwwy3y3 NCKU
Me • wwwy3y3 • 張仲威 • ncku student • python
, nodeJs lover
classical_ciphers • pip install classical_ciphers • github: /wwwy3y3/ciphers • help
you understand classical ciphers • DO NOT USE FOR PRODUCTION!!
ciphers • monoalphabetic • ceasar cipher • keyword • polyalphabetic
• transposition
None
monoalphabetic- Ceasar cipher • simple shift • encrypter.ceasar(3)
monoalphabetic -keyword • keyword: william -> wilam • encrypter.keyword(‘william’) •
plaintext ABCDEFGHIJKLMNOPQRSTUVWXYZ • ciphertext WILAMBCDEFGHJKNOPQRSTUVXYZ
polyalphabetic • keyword: snake -> 9, 14, 1, 11, 15
• plaintext HELLO HOW ARE YOU • -> 8-5-12-12-15 -8-15-23-1-18 -5 25-15-21 • ->19-14-1-11-5 -19-14-1-11-5- 19-14-1-11 • add up -> your ciphertext! • encrypter.poly(‘william’)
transposition • plaintext: hello how are you • window size=3!
• ciphertext: hloro eoweu lhay • WHY? • letter frequency h e l l o h o w a r e y o u
None
encrypt.trans(4).poly(‘python’) decrypt.poly(‘python’).trans(4)
THANK U