Popular recipes tagged "cryptography"http://code.activestate.com/recipes/tags/cryptography/popular/2015-09-21T12:58:34-07:00ActiveState Code Recipesed25519 (Python)
2015-09-21T12:58:34-07:00yotahttp://code.activestate.com/recipes/users/4184815/http://code.activestate.com/recipes/579102-ed25519/
<p style="color: grey">
Python
recipe 579102
by <a href="/recipes/users/4184815/">yota</a>
(<a href="/recipes/tags/cryptography/">cryptography</a>).
Revision 2.
</p>
<p>This is a re-implementation of the ed25519 signature algorithm as proposed on this page : <a href="http://ed25519.cr.yp.to/python/ed25519.py." rel="nofollow">http://ed25519.cr.yp.to/python/ed25519.py.</a></p>
<p>Do not use for production, only for the eyes o_O</p>
<p>Code is tab indented, space indentation kills kitten...</p>
Simple Cipher (Python)
2014-07-22T16:23:39-07:00Stephen Driffillhttp://code.activestate.com/recipes/users/4190452/http://code.activestate.com/recipes/578912-simple-cipher/
<p style="color: grey">
Python
recipe 578912
by <a href="/recipes/users/4190452/">Stephen Driffill</a>
(<a href="/recipes/tags/cipher/">cipher</a>, <a href="/recipes/tags/code/">code</a>, <a href="/recipes/tags/cryptography/">cryptography</a>).
</p>
<p>Takes a string and encodes it using a simple cipher.</p>
Encrypt and Decrypt Text and Text Files (BETA) (Python)
2011-11-22T04:18:15-08:00Alexander James Wallarhttp://code.activestate.com/recipes/users/4179768/http://code.activestate.com/recipes/577954-encrypt-and-decrypt-text-and-text-files-beta/
<p style="color: grey">
Python
recipe 577954
by <a href="/recipes/users/4179768/">Alexander James Wallar</a>
(<a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/cryptology/">cryptology</a>, <a href="/recipes/tags/decrypt/">decrypt</a>, <a href="/recipes/tags/decryption/">decryption</a>, <a href="/recipes/tags/encrypt/">encrypt</a>, <a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/hidding/">hidding</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/text/">text</a>, <a href="/recipes/tags/text_files/">text_files</a>).
Revision 7.
</p>
<p>This program interactively lets you encrypt and decrypt text as well as text files using a key system as well as a cipher.</p>
Encrypt and Decrypt Text and Text Files (BETA) Jython GUI (Python)
2011-11-23T05:37:04-08:00Alexander James Wallarhttp://code.activestate.com/recipes/users/4179768/http://code.activestate.com/recipes/577957-encrypt-and-decrypt-text-and-text-files-beta-jytho/
<p style="color: grey">
Python
recipe 577957
by <a href="/recipes/users/4179768/">Alexander James Wallar</a>
(<a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/cryptology/">cryptology</a>, <a href="/recipes/tags/decryption/">decryption</a>, <a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/encryption_decryption/">encryption_decryption</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/hiding/">hiding</a>, <a href="/recipes/tags/text/">text</a>).
Revision 3.
</p>
<p>This is a Jython GUI of my previous recipe: Encrypt and Decrypt Text and Text Files</p>
Frequency Analyser (Python)
2011-08-11T09:26:56-07:00Stijn de Graafhttp://code.activestate.com/recipes/users/4178055/http://code.activestate.com/recipes/577837-frequency-analyser/
<p style="color: grey">
Python
recipe 577837
by <a href="/recipes/users/4178055/">Stijn de Graaf</a>
(<a href="/recipes/tags/analysis/">analysis</a>, <a href="/recipes/tags/analyze/">analyze</a>, <a href="/recipes/tags/character/">character</a>, <a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/frequency/">frequency</a>).
</p>
<p>Calculates the frequency of characters within a block of text. In the context of cryptography, these values can be compared to a frequency table in order to attempt to ascertain the original message.</p>
M2Crypto-compatible root certificate list generator (Python)
2010-08-25T00:49:48-07:00Mike Ivanovhttp://code.activestate.com/recipes/users/4169853/http://code.activestate.com/recipes/577370-m2crypto-compatible-root-certificate-list-generato/
<p style="color: grey">
Python
recipe 577370
by <a href="/recipes/users/4169853/">Mike Ivanov</a>
(<a href="/recipes/tags/authority/">authority</a>, <a href="/recipes/tags/certificate/">certificate</a>, <a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/https/">https</a>, <a href="/recipes/tags/pem/">pem</a>, <a href="/recipes/tags/ssl/">ssl</a>).
</p>
<p>This modified version of the Heikki Toivonen's certdata2pem script automatically downloads the freshest certdata.txt file and converts it to PEM format. Requires M2Crypto. </p>
Prime, Perfect and Fibonacci Number Widget Class (Python)
2010-05-19T17:02:28-07:00AJ. Mayorgahttp://code.activestate.com/recipes/users/4173476/http://code.activestate.com/recipes/577229-prime-perfect-and-fibonacci-number-widget-class/
<p style="color: grey">
Python
recipe 577229
by <a href="/recipes/users/4173476/">AJ. Mayorga</a>
(<a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/numbers/">numbers</a>, <a href="/recipes/tags/prime/">prime</a>, <a href="/recipes/tags/primes/">primes</a>).
Revision 2.
</p>
<p>A class Ive had in my snippets for awhile that can generate prime, perfect and fibonacci sequences as well as check whether or not a supplied value is any of them.</p>
SimpleCryptSocketExt - SimpleCrypt Wrapper for Easy Socket, Client / Server Encryption (Python)
2010-05-07T15:33:06-07:00AJ. Mayorgahttp://code.activestate.com/recipes/users/4173476/http://code.activestate.com/recipes/577212-simplecryptsocketext-simplecrypt-wrapper-for-easy-/
<p style="color: grey">
Python
recipe 577212
by <a href="/recipes/users/4173476/">AJ. Mayorga</a>
(<a href="/recipes/tags/client_server/">client_server</a>, <a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/server/">server</a>, <a href="/recipes/tags/socket/">socket</a>).
Revision 5.
</p>
<p>Lightweight drop-in encryption wrapper for various Client/Server solutions supporting
protocols such as UDP, TCP, HTTP, HTTPS, FTP, RAW Sockets etc.</p>
Simple Small Tweakable Encryption Solution -- SimpleCrypt (Python)
2010-04-30T21:00:26-07:00AJ. Mayorgahttp://code.activestate.com/recipes/users/4173476/http://code.activestate.com/recipes/577174-simple-small-tweakable-encryption-solution-simplec/
<p style="color: grey">
Python
recipe 577174
by <a href="/recipes/users/4173476/">AJ. Mayorga</a>
(<a href="/recipes/tags/crypt/">crypt</a>, <a href="/recipes/tags/cryptography/">cryptography</a>, <a href="/recipes/tags/encryption/">encryption</a>).
Revision 6.
</p>
<p>Encryption can sometimes be a nightmare, at least is my experience while Python has
some excellent resources for encryption I found myself a lot of times needing an
encryption solution that could port easily between VS C++, .NET, PHP, and Python
projects that would be simple to implement and not rely on large bloated
crypto libs.</p>