<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Fri, Jul 23, 2021, at 6:56 PM, Leo wrote:<br></div><blockquote type="cite" id="qt" style=""><div>I don't want to bother with depending on more traditional cryptographic hashes or sponges.<br></div><div>Any opinions? Is this a valid method? Can anything useful be salvaged from this or is it hopeless?<br></div></blockquote><div><br></div><div>What part of<br></div><div><br></div><div>import hashlib<br></div><div>hashlib.sha512(key).digest()<br></div><div><br></div><div>is a bother?<br></div><div><br></div><div>In any case, handling single bits like that is extremely inefficient. On top of that such a shuffling pattern is prone to short periods, depending on the key. In the worst case you loop right back to the starting pattern.<br></div><div><br></div><div>For reference, the code as I believe it is supposed to be indented: <a href="https://gist.github.com/NoHatCoder/c8d7c72825f8167a97fc9ec2ac711c3a">https://gist.github.com/NoHatCoder/c8d7c72825f8167a97fc9ec2ac711c3a</a></div></body></html>