TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rijndael S-box in 512 bytes of Python

31 pointsby juliusgeoover 2 years ago

3 comments

pxeger1over 2 years ago
Some explanation of the context, and some more solutions, can be found at <a href="https:&#x2F;&#x2F;codegolf.stackexchange.com&#x2F;q&#x2F;3766" rel="nofollow">https:&#x2F;&#x2F;codegolf.stackexchange.com&#x2F;q&#x2F;3766</a>, including a 176 byte solution in Python.
评论 #34264929 未加载
juliusgeoover 2 years ago
Code golf style implementation of AES S-box and inverse in the same number of bytes as just pre-calculating the tables.
badrabbitover 2 years ago
The rijndael S-box unlike some other ciphers I&#x27;ve read about, does not use &quot;nothing up my sleeve&quot; numbers but uses numbers with specific mathematical properties. I don&#x27;t think that means anything nefarious was intended but I&#x27;ve always wondered if replacing that with something like &quot;digits of pi starting from a random offset&quot; would be workable?<p>Pardon the ignorance, I know little about crypto.
评论 #34282304 未加载