TobyInkster.co.uk

Articles Tagged with “Crypto”

19/08/2007: TrivialEncoder/0.2

An update to my PHP encryption class. Despite the name, it’s becoming a pretty sophisticated encyption machine. New encryption algorithms added:

The TrivialEncoderManager class has been obsoleted by TE_Machine, an abstract class with several different child classes for encoding, decoding and analysis. TE_Machine has a greatly improved parser for methods, which has made it a lot easier for me to add additional functionality such as the ability to analyse an encryption technique to see how strong it would be, and to check whether the output would be ASCII-safe. TrivialEncoderManager is still present, but is deprecated and will be removed next release.

01/08/2007: PHP Encryption Class

Here’s a simple PHP library for encoding and decoding text.

Examples:

<?php
$trivialencoder_auto FALSE;
include 'TrivialEncoder.class.php';

$manager    = new TrivialEncoderManager;
$plaintext  'Hello world';
// Chain together Triple DES, Memfrob and Base64 encoding.
// Note: 3DES encoding is passed an (optional) key "mysecretkey".
$encoding  '3des mysecretkey;memfrob;base64';
$cyphertext $manager->encode($encoding$plaintext);
echo $manager->decode($encoding$cyphertext); // Hello world
?>

24/07/2007: Cryptography Challenge

Here’s a challenge. Decrypt…

aWt6eWZlaWEKfWJjeWFvcwppa3p5ZmVpYQpvaWJlCmZjZ2sKZmNnawp5
emtpbwpub2Z+awpleWlreApkZXxvZ2hveApvaWJlCmhrZG0KeXpraW8Ka
Wt6eWZlaWEKemt6awppa3p5ZmVpYQpmY2drCm9pYmUKa2Z6YmsKeW
NveHhrCm9pYmUKeXpraW8KZmNnawpvaWJlCmtmemJrCnxjaX5leApvaW
JlCnl6a2lvCmtmemJrCnl6a2lvCmlia3hmY28KZXlpa3gKZ2NhbwpnY2FvCm9
pYmUKZGV8b2dob3gKfmtkbWUKeXpraW8KZXlpa3gKZGV8b2dob3gKeX
praW8KfmtkbWUKZXlpa3gKaHhrfGUKc2tkYW9vCmNkbmNtZQpkZXxvZ2h
veAphY2ZlCnljb3h4awp+a2RtZQpvaWJlCnhlZ29lCnl+ZXoKaWJreGZjbwpl
eWlreAp5fmV6Cn9kY2xleGcKYWNmZQp5emtpbwppYmt4ZmNvCmZjZ2sK
a2Z6YmsKY2RuY21lCmdjYW8KY2RuY21lCmRlfG9naG94Cm1lZmwKeXpra
W8KaWJreGZjbwp4ZWdvZQpvaWJlCm5vZn5rCmNkbmNtZQp+a2RtZQp5f
mV6

steg-encode.pl

Summary not available.

Cryptography

Summary not available.

A Beginner’s Guide to Cyber-Rights

Learn about your rights online and who is trying to take them away from you!

Google Search

Blogroll

Here are some other sites. Some might be good; some might be rubbish. You decide.