Popular recipes tagged "encryption" but not "python"http://code.activestate.com/recipes/tags/encryption-python/2014-03-01T18:56:19-08:00ActiveState Code RecipesRSA: a simple and easy-to-read implementation (Python)
2014-03-01T18:56:19-08:00Andrea Corbellinihttp://code.activestate.com/recipes/users/4186880/http://code.activestate.com/recipes/578838-rsa-a-simple-and-easy-to-read-implementation/
<p style="color: grey">
Python
recipe 578838
by <a href="/recipes/users/4186880/">Andrea Corbellini</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/learning/">learning</a>, <a href="/recipes/tags/rsa/">rsa</a>, <a href="/recipes/tags/security/">security</a>).
</p>
<p>This is a really simple RSA implementation. It does not want to be neither fast nor safe; it's aim is to provide a working and easy to read codebase for people interested in discovering the RSA algorithm.</p>
Public Key Encryption (RSA) (Python)
2013-12-27T06:43:59-08:00Mohammad Taha Jahangirhttp://code.activestate.com/recipes/users/4188847/http://code.activestate.com/recipes/578797-public-key-encryption-rsa/
<p style="color: grey">
Python
recipe 578797
by <a href="/recipes/users/4188847/">Mohammad Taha Jahangir</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/inverse/">inverse</a>, <a href="/recipes/tags/multiplicative/">multiplicative</a>, <a href="/recipes/tags/primality_testing/">primality_testing</a>, <a href="/recipes/tags/primes/">primes</a>, <a href="/recipes/tags/publickey/">publickey</a>, <a href="/recipes/tags/rsa/">rsa</a>).
Revision 3.
</p>
<p>Simple code to create and use public/private keypairs. Accompanied by a rudimentary encoder.</p>
Markov Encryption Module (for Python 2.5) (Python)
2012-07-25T22:33:03-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578135-markov-encryption-module-for-python-25/
<p style="color: grey">
Python
recipe 578135
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/library/">library</a>, <a href="/recipes/tags/module/">module</a>, <a href="/recipes/tags/utility/">utility</a>).
Revision 4.
</p>
<p>This module provides classes that are useful for executing Markov encryption and decryption on data. ME was inspired by a combination of Markov chains with the puzzles of Sudoku. This implementation is a rewrite from the Python 3.x version and includes various changes and optimizations to work with Python 2.5 and related versions. All documentation has been left in <a href="http://code.activestate.com/recipes/578075/">recipe 578075</a> and should be referred to there.</p>
Markov Encryption Demonstration 2 (Python)
2012-03-14T17:39:17-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578076-markov-encryption-demonstration-2/
<p style="color: grey">
Python
recipe 578076
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/encode/">encode</a>, <a href="/recipes/tags/encoding/">encoding</a>, <a href="/recipes/tags/encrypt/">encrypt</a>, <a href="/recipes/tags/encryption/">encryption</a>).
</p>
<p>This program is meant to act as an example of how to use ME with
data that needs to be obfuscated. The functionality provided via
the GUI demonstrates both the ability to encrypt and decrypt all
text that the UTF-8 encoding can handle. Explanations come later.</p>
Markov Encryption Module (Python)
2012-09-05T20:25:49-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578075-markov-encryption-module/
<p style="color: grey">
Python
recipe 578075
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/library/">library</a>, <a href="/recipes/tags/module/">module</a>, <a href="/recipes/tags/utility/">utility</a>).
Revision 7.
</p>
<p>This module exposes primitives useful for executing Markov Encryption
processes. ME was inspired by a combination of Markov chains with the
puzzles of Sudoku. This implementation has undergone numerous changes
and optimizations since its original design. Please see documentation.</p>
Markov Encryption Demonstration 1 (Python)
2012-03-16T18:59:06-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578062-markov-encryption-demonstration-1/
<p style="color: grey">
Python
recipe 578062
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/demonstration/">demonstration</a>, <a href="/recipes/tags/encode/">encode</a>, <a href="/recipes/tags/encoding/">encoding</a>, <a href="/recipes/tags/encrypt/">encrypt</a>, <a href="/recipes/tags/encryption/">encryption</a>).
</p>
<p>This is a simple GUI program that shows Markov Encryption at work. It is built to be interactive and has all needed code embedded within itself. This version of ME library is not very efficient and represents an early attempt at developing and easily testing the code. Certain limits are built into the program, and the code is not meant to be robust at this stage. This program is a proof-of-concept design meant to ensure that the work being done was viable for future use and that the encryption process could be carried out both ways, both in encoding plaintext and decoding ciphertext.</p>
Public Key Encryption (RSA) (Python)
2012-05-12T23:34:22-07:00Raymond Hettingerhttp://code.activestate.com/recipes/users/178123/http://code.activestate.com/recipes/577737-public-key-encryption-rsa/
<p style="color: grey">
Python
recipe 577737
by <a href="/recipes/users/178123/">Raymond Hettinger</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/inverse/">inverse</a>, <a href="/recipes/tags/multiplicative/">multiplicative</a>, <a href="/recipes/tags/primality_testing/">primality_testing</a>, <a href="/recipes/tags/primes/">primes</a>, <a href="/recipes/tags/publickey/">publickey</a>, <a href="/recipes/tags/rsa/">rsa</a>).
Revision 2.
</p>
<p>Simple code to create and use public/private keypairs. Accompanied by a rudimentary encoder.</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>
SMS_Encryption (Python)
2011-03-14T08:26:29-07:00amir naghavihttp://code.activestate.com/recipes/users/4177294/http://code.activestate.com/recipes/577606-sms_encryption/
<p style="color: grey">
Python
recipe 577606
by <a href="/recipes/users/4177294/">amir naghavi</a>
(<a href="/recipes/tags/acm/">acm</a>, <a href="/recipes/tags/algorithm/">algorithm</a>, <a href="/recipes/tags/encryption/">encryption</a>).
</p>
<p>the answer of an acm problem to further explantion look at source code.</p>
Novel JavaScript Text Compressor (JavaScript)
2011-01-31T15:41:36-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577557-novel-javascript-text-compressor/
<p style="color: grey">
JavaScript
recipe 577557
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/compression/">compression</a>, <a href="/recipes/tags/encode/">encode</a>, <a href="/recipes/tags/encryption/">encryption</a>).
</p>
<p>Compression, encryption, and data codecs are all related fields that most programmers will use ready-made solutions for. This recipe is a shallow adventure into the writing of original code and algorithms that explores a combination of those topics. Based on the work of <a href="http://code.activestate.com/recipes/577433/">recipe 577433</a>, the code here is compliant with JavaScript and will run a test of itself when executed. From the program's report, one can gather that the novel procedures compress the source and accurately decompress it again. For those who wish to experiment further with the concept, note that fewer unique characters will yield higher compression ratios.</p>
<p>To get a copy of <em>biginteger.js</em> for the program to run and compression algorithm to operator, please go to <a href="http://silentmatt.com/biginteger/" rel="nofollow">http://silentmatt.com/biginteger/</a> and use the latest version of Matthew Crumley's excellent JavaScript big integer library.</p>
Text Compressor 3.1 (Python)
2010-10-20T00:50:15-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577433-text-compressor-31/
<p style="color: grey">
Python
recipe 577433
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/compression/">compression</a>, <a href="/recipes/tags/encode/">encode</a>, <a href="/recipes/tags/encryption/">encryption</a>).
</p>
<p>Compression, encryption, and data codecs are all related fields that most programmers will use ready-made solutions for. This recipe is a shallow adventure into the writing of original code and algorithms that explores a combination of those topics. Based on the work of <a href="http://code.activestate.com/recipes/502202/">recipe 502202</a>, the code here is compliant with Python 3.1 and will run a test of itself when executed. From the program's report, one can gather that the novel procedures compress the source and accurately decompress it again. For those who wish to experiment further with the concept, note that fewer unique characters will yield higher compression ratios.</p>
Object id mask, against data spiders (Python)
2010-08-16T07:18:43-07:00Chaobin Tang (唐超斌)http://code.activestate.com/recipes/users/4174076/http://code.activestate.com/recipes/577359-object-id-mask-against-data-spiders/
<p style="color: grey">
Python
recipe 577359
by <a href="/recipes/users/4174076/">Chaobin Tang (唐超斌)</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/url/">url</a>).
Revision 4.
</p>
<p>A funny, simple, and efficient encrypt for an object ID. Always used against an unsolicited automated spider that scrawls your site to collect data.</p>
File encryption using stream cipher (Python)
2010-03-20T14:53:48-07:00FB36http://code.activestate.com/recipes/users/4172570/http://code.activestate.com/recipes/577090-file-encryption-using-stream-cipher/
<p style="color: grey">
Python
recipe 577090
by <a href="/recipes/users/4172570/">FB36</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/math/">math</a>).
Revision 2.
</p>
<p>File encryption/decryption using stream cipher.
It can encrypt/decrypt any type of file.</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>
RC4, ARC4, ARCFOUR algorithm (Python)
2009-05-03T09:45:59-07:00Thimo Kraemerhttp://code.activestate.com/recipes/users/4169283/http://code.activestate.com/recipes/576736-rc4-arc4-arcfour-algorithm/
<p style="color: grey">
Python
recipe 576736
by <a href="/recipes/users/4169283/">Thimo Kraemer</a>
(<a href="/recipes/tags/algorithm/">algorithm</a>, <a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/text/">text</a>).
Revision 5.
</p>
<p>RC4 generates a pseudorandom stream of bits (a keystream) which, for encryption, is combined with the plaintext using bit-wise exclusive-or; decryption is performed the same way (since exclusive-or is a symmetric operation).</p>
<p>(see <a href="http://en.wikipedia.org/wiki/RC4">http://en.wikipedia.org/wiki/RC4</a>)</p>
Create SHA Hashes of a Directory (Python)
2009-04-14T08:10:26-07:00andrew.canithttp://code.activestate.com/recipes/users/4169843/http://code.activestate.com/recipes/576716-create-sha-hashes-of-a-directory/
<p style="color: grey">
Python
recipe 576716
by <a href="/recipes/users/4169843/">andrew.canit</a>
(<a href="/recipes/tags/encryption/">encryption</a>, <a href="/recipes/tags/hash/">hash</a>, <a href="/recipes/tags/security/">security</a>, <a href="/recipes/tags/sha/">sha</a>).
Revision 2.
</p>
<p>Walk through a Directory creating SHA Hashes of each file path</p>
Ascii Encryptor (Python)
2008-10-10T10:53:04-07:00Erik Andersonhttp://code.activestate.com/recipes/users/4155471/http://code.activestate.com/recipes/576535-ascii-encryptor/
<p style="color: grey">
Python
recipe 576535
by <a href="/recipes/users/4155471/">Erik Anderson</a>
(<a href="/recipes/tags/ascii/">ascii</a>, <a href="/recipes/tags/convert/">convert</a>, <a href="/recipes/tags/encryption/">encryption</a>).
</p>
<p>Converts a string of characters to ascii</p>