Crypto in the personal privacy world

I was recently presented with The Code Book and while leafing through the pages during a moment of boredom I managed to create a simple crypto using the Julius Caesar character substitution method using Sybase T-SQL. And though I’m sure that the resulting encrypted text could be broken with brute force, it would not be easy, nor very worthwhile for most messaging.

In this world of spying and privacy invasion from all directions, a little personal crypto might be in order, particularly if one is inclined to be suspicious of commercial algorithms. and while this stored procedure is simple, it can be enhanced, feel free to use it for your own needs.

CREATE PROCEDURE dbo.simple_crypto
@key_word varchar(25),
@message varchar(255),
@direction varchar(8)

set nocount on

@key_input varchar(20),
@key varchar(27),
@key2 char(27),
@olumn int, @olumnk int,
@input varchar(255),
@olumnb int,
@output varchar(255),
@out char(1), @a_char char(1),
@undone varchar(255),
@count int

select @count = 97, @olumnk = 1
select @key_input = lower(@key_word) –‘branedy’
select @input = lower(@message)

create table #alpha (a_char char(1))

while @count <= 122 begin insert into #alpha values (char(@count)) select @count = @count + 1 end select @key = char(32) while @olumnk <= datalength(@key_input) begin select @out = substring(@key_input, @olumnk, 1) delete from #alpha where a_char = @out if @@rowcount = 1 begin select @key = @key + @out end select @olumnk = @olumnk+1 end select @key = @key + a_char from #alpha drop table #alpha select @olumn = 1, @olumnb = 1, @key2 = 'abcdefghijklmnopqrstuvwxyz{' -----------------encrypt if @direction = 'Cipher' begin while @olumnb <= datalength(@input) begin select @output = @output + char(charindex(substring(@input, @olumnb,1), @key) + 96) select @olumnb = @olumnb+1 end select @input + ' = ' + @output as 'Encrypted' end -------------------------------------------decrypt if @direction = 'Decipher' begin select @output =@message while @olumn <= datalength(@output) begin select @undone = @undone+ char(ascii(substring(@key, charindex(substring(@output, @olumn,1), @key2),1))) --, select @olumn = @olumn+1 end select @output + ' = ' + @undone as 'Decrypted' end -------------------------------- select 'From the key ' + @key return GO

Bertie’s empty promises

As usual Damien is highlighting Bertie’s government failings with this
‘I ain’t really with it, I’m gettin’ off at Tara’ story.

What do you expect, Bertie can’t even tell the truth about his own expenses. And you think he would spend any money on people with needs? What, and give it to people who he doesn’t know personally? What would he give to his friends if he spent it on things like, drug prevention, drug rehabilitation, social services for children, children’s rights. That stuff is expensive, and mostly no one will notice if he just lies a bit more.

What gets me is this man got re-elected. What does that say about the electorate?

Planting the seeds of an the attack on Iran

This article Iran Is Found To Be a Lair of Al Qaeda reeks of the same odor as the ‘intelligence’ that led to the invasion of Iraq. But it’s just the first seed, a testing of the waters, if you will, for more elaborate fabrications. Watch this story unfold, as it will get better.

Mind you the leadership of Iran does not have any real love for the U.S., but the Bush administration has more personal links to this country than they are willing to admit. Just ask George’s father.

Politically incorrect Truths

This article on Ten Politically Incorrect Truths About Human Nature is very interesting, and I love some of the resulting answers that you can derive from them.

To ask why the President of the United States would have a sexual encounter with a young woman is like asking why someone who worked very hard to earn a large sum of money would then spend it.

Fully explains why Bill Clinton had an affair while in the WhiteHouse. But the real question is even better. How is it that George Bush has NOT had an affair, or maybe he has and hasn’t been caught.

And this statement that terrorist are really just sexually repressed virgin males that think suicide bombing is a great way to get girls.

So polygyny increases competitive pressure on men, especially young men of low status. It therefore increases the likelihood that young men resort to violent means to gain access to mates. … The other key ingredient is the promise of 72 virgins waiting in heaven for any martyr in Islam.

And maybe this is what Bush is doing,

Societies in sub-Saharan Africa and the Caribbean are much more polygynous than the Muslim nations in the Middle East and North Africa. And they do have very high levels of violence. Sub-Saharan Africa suffers from a long history of continuous civil wars—but not suicide bombings.

He likes to start violent wars because he’s not getting sex in the Whitehouse 😉

So for this reason;

Men like blond bombshells

Id’s be looking for some blond under Bush’s bed, maybe named Ann Coulter?

The opposite of iPhone, The MotoFone F3

While the rest of the world is talking about the iPhone like Tom O2 to sell the iPhone?. I went to Lidl this morning a pickup a mobile, that can only be described as the antitheses of the iPhone the Motofone F3 and I can tell you after only a few hours of use, it’s as beautiful a mobile phone as the iPhone, in exactly the target audience it was proposed for, as that proposed by the iPhone’s target audience.

I’ll report more as I go along, but for now, I’m just as happy to have this phone as I might have been to be one of the proud iPhone owners.

I am still trying to find out if it runs Linux.

UPDATE: The F3 is a SCPL (scalpel) class device which runs a Java/Linux derived OS called JUIX now all I have to do is hack a command line interface to really get this thing to sing 😉

Motorola Motofone F3 Dissassembly
Motorola Motofone F3
Motorola Motofone F3

Politicians are now above the Law

If the obvious has not yet been demonstrated clearly, then Bush not ruling out Libby pardon should come as no surprise.

But from here on out all crimes done by Bush Administration Politicians are now above the reach of the law.

It’s no wonder that the Taoiseach Bertie and President Bush are such great friends. They both believe that the ruling class do not observer the same laws as common folks.

The past in perspective

The Taoiseach by stating;

Let us consign arguments about the past to the annals of the past” – Taoiseach

wasn’t just talking about Beverly Flynn and her previous crimes against the state.

After all, an unrepentant murderer could still be a nice person, if you could trust them.

It seems that this must be a personal wish for the Taoiseach’s own past and an underlying belief of the government and the National Archives, when even items in their own card catalogs are missing or lost in the annals of time and there is no desire amongst the staff working there to correct the situation. It’s no wonder that the Canadians have to digitize the Irish Census for them.