Tuesday, December 5, 2017

My attempt at creating a substitution cipher

As I wandered around Bletchley Park on Sunday, I couldn't help but wonder if I could come up with a plaintext cipher of my own.

Now, I'm not well versed in any programming languages - though I did once dick around in PHP - unless it's scripting something in mIRC; nor am I any good at math, so that rules out any complicated stuff like NAND or XOR; so my only option was a letter substitution cipher.

The only problem with these is that they're incredibly trivial to crack. Esp. if A = T, B = Z, C = L, etc.

Whilst walking around in circles - which is something I do whenever l'm lost in thought or bored (or both) - I came up with the solution: Kanji, Hiragana and Katakana

This brought the amount of usable characters to around 2,280.

Where it all began:

Here's what I did,

I used the following website [saiga-jp] to get a list of Kanji - which also included Jinmei level Kanji as a bonus, now bringing the character count to over 3,000 - and Windows charmap to get the Hiragana and Katakana characters; including vu (ヴ), wi (ヰ) and the other unused ones. (I didn't include the small versions of characters like ぅ.)

Following that, I removed any characters that looked remotely similar to each other like Katakana ロ vs. Kanji 口 (mouth); or Katakana ニ vs. Kanji 二 (two).

The only ones I didn't remove were 夕 and タ
because they looked quite different from each other - notice how the \ actually goes through the ノ in the second Kanji? Though this seems to depend on the font; and in retrospect I probably should have done so.

After I did this, I mixed up the characters in a random order in notepad and worked out how many characters I would need per line depending on what characters I permitted to be encoded.

The end result looked a little something like this.

I opted for an .ini file for this because I felt it was easier for me to work with.

The logistics: 

The next stage was for me to write a half-assed mIRC alias to generate an encrypted string based on my input for demonstration purposes.

But before I could do this there were a few factors I need to take into consideration in order to make the output harder (read: not impossible) to crack.

A character may only be encrypted if it's in the list of pre-defined permitted characters. Any character that is not permitted (with the exception of space) must either be set as "X." If strict mode is applied, the encryption process is terminated.

Hopefully this should force people to write characters like £ as "pounds," which also makes the string longer.

All Japanese characters must be randomly picked from that specific character's line of characters. If you notice in the above screenshot, line 4 are the characters for the character "3." So: 3 => || 3 =>

Any characters that follow themselves in succession can never be the previous Japanese character.

Let's take the sound "Grrr," as an example. This has three r's. Therefore the second r cannot have the same character as the first r, and the third r cannot have the same character as the second r.

So Grrr => 貌よ一よ would be acceptable, but Grrr => 貌よよよ is not. However, if there is a space, having the same character as the last character before the space is also acceptable.

So Grrr r => 貌よ一よ よ is valid. 

Here's an example [imgur] of me testing this using two Kanji representing the letter "a."

With all that done, I coded an alias which can be downloaded from here. [github]


1. Various strings for the same sentence, like so.

2. The sheer amount of Kanji that can be used. The example ini file on Github contains around 3,200 Kanji. From what I've heard there are well over 8,000 Kanji, which works out at about >85 characters per ascii character.

3. Character and key order can be restructured freely.


1. Requires at least two Japanese characters for one letter re: the doppelgänger problem.

2. Would require at least Japanese locale installed on a computer, or at least good handwriting if someone writes down the ciphertext.

Final word:

This seemed like an interesting idea, at least from my perspective. I'm not sure if anyone has ever attempted this before from a harder perspective.

Now I just want to see if somebody can crack it.

If you want to have a go, then please try decrypting this message I wrote with a completely different ini key structure: https://pastebin.com/raw/frQ7SMZ3 (archive)

07/12/2017: I recently updated the cipher to encode spaces. Here's another message which uses yet another different ini key structure: https://pastebin.com/raw/QwN9NQrg (archive)

09/12/2017: I updated the cipher again to pad the message with Kanji that mean nothing. Again, this uses a different ini key structure: https://pastebin.com/raw/6A6rs43Y (archive)

You won't get a prize if you do, but you will get a warm fuzzy feeling~ (maybe)

If you manage to succeed, leave a message in the comments.

Good luck!

Friday, November 18, 2016

[Micropost]: "Obey the law, even if you don't agree with it," you say?

So as I take a brief break teaching myself Japanese and my brain melting as a result, I couldn't help but stumble on a news article on The Guardian about a woman who's being charged for having sex outside of marriage in the United Arab Emirates because she was raped; and having sex outside of marriage (regardless of the circumstances) is a crime there.

And incidently, is the second time I've read one of these articles - the first being from a few years back involving a Norwegian woman. [source]

But it got me to thinking about how people who're against civil disobedience and spout half-baked retorts such as "Obey the law, even if you don't agree with it." or "People can't just pick and choose what laws they want to obey!"

Laws fall into two categories:
  1. Malum Prohibitum - it's only illegal because the law says it is - e.g. jaywalking
  2. Malum in se  - illegal because the act is wrong in itself - e.g. assault, murder, rape

I quite happily disobey a victimless, Malum Prohibitum law (as I once before mentioned here), but quite happily obey the law for things such as murder* and rape because they're utterly reprehensible acts against another person.

People disobeying unjust and/or victimless laws isn't going to cause the downfall of humanity.

I don't agree with is what's happening to the woman here; or what happened to the Norwegian woman - who was thankfully pardoned in the end. The only people who should be dealt with are the people who commited the heinous act of rape...

So the question is this:

If people should obey the law, even if they don't agree with it, does this mean that what is happening to this woman is totally justifiable because after all, she broke the law, right?

What're your thoughts?

*I do wish to point out that I would kill another person to defend my own life; for example, if they were trying to murder me.

Sunday, July 19, 2015

Two words: Jury nullification

I'm posting this here in the hopes that people will see it, and educate others about it.

More people in the UK, as well as Australia and the U.S need to know about a thing called Jury nullification, a last line of defense against unjust laws.

If, for example, you ever get selected for a trial which is a victimless crime; e.g. 

  • Someone who possesses subjectively "obscene" drawings
  • People who grow Cannabis plants for their own personal use
  • Telling people about Jury nullification [source]

...and all the evidence clearly indicates that they are guilty of said "crime," you can question the law and disagree with it because you feel it is unjust or wrongly applied, and that the person in question shouldn't be punished.

This is because as a juror, you don't have to give any reasoning for your verdict, and you can't be punished for returning a verdict that is "incorrect." This is why the entire concept of jury nullification exists to begin with.

Juries have more power than judges, magistrates and the prosecution would like you to ever know about.

WARNING: I'm not entirely sure if Australia and the UK have selection processes like they do in the U.S.; but for those of you who live in the U.S., if you know about jury nullification, don't disclose your knowledge about it either during the selection process or to other jurors in the deliberation room, because they will disqualify you and everybody else. (Although this could be argued that it's a punishment in itself.)

This is because they would like the jury to conform.

If you do manage to get selected for jury duty, just remember that the oath they make you take isn't binding, because as history has managed to show, "orders are orders" is a terrible justification for blindly obeying an authority.

Stick to your convictions, and don't allow someone to be punished just because a law is unjust.

For any further information, search Google or check out videos on YouTube.

Friday, October 24, 2014

Defending Lolicon

If you've read the news [alternative source] from a few days ago, you'll know that a man was convicted in the UK for possessing loli. Drawings of young (looking) anime characters naked and/or in sexual situations. No indecent photos or recorded footage of children. Just drawings.

I generally think of myself as a very open-minded person; I like to base things on logic and reason, rather than personal feelings and emotion.

And thankfully there have been a lot of comments on various news sites from people, some of whom personally find these drawings disgusting, but defending freedom of speech, freedom of thought, freedom of expression; and therefore the right to draw, view or possess them.

I would like to say my bit.

I live in the UK. I am a lolicon, I have loli; and a very large majority of it is explicit. So I am in fact openly admitting that I am breaking the law.


Because it is the obligation of every person to disobey unjust laws.

If you disagree with that, then I must stop and ask...

  • Should Alan Turing have "magically" turned straight? [source]
  • Should Rosa Parks have moved when she was told to? [source]
  • Should the wives and/or mistresses of slave owners forgone secretly educating black slaves? [source]

...because everyone that I've just mentioned broke the law.

We have a lot, but not all, of the older generation passing or supporting laws either based on their ignorance or their personal feelings.

  • "I don't understand it, so it should be illegal." (E.g. Segways)
  • "I don't like it, so it should be illegal." (E.g. Loli)
  • "It has no purpose, so it should be illegal." (E.g. LSD, according to UK law.) 

As quoted from the news article, Judge Tony Briggs said "This is material that clearly society and the public can well do without. [...]"

Why should courts, or for that matter, other people, be allowed to decide what I, or others may or may not see? People who believe that an arbiter should be allowed to decide if something such as an image is illegal or not, are irrational and misguided. Would you have a problem with them deciding what kind of positions you're allowed to use during sex, such as the missionary position or spooning? (Example: Anal sex in the UK was illegal until the 90s.)

And this is also the reason why nothing in the UK will ever change, because "If society can do without it, it's wrong!"

It's all well and good saying "If you don't like it, get the law changed!," but it's pointless if those in charge aren't even willing to listen. Because, at the end of the day, they're still going to ignore us and do what they want regardless.

Two examples of this are going to war with Iraq and increasing University fees, despite large protests.

Maybe you do find loli disgusting; after all, everyone's entitled to their own opinion. I personally find mushrooms disgusting; but that is an unacceptable reason to "correct" a persons way of thinking, jail them, persecute or prosecute them.

Or should people be hating the fact that someone exists with an attraction that they can't choose, or that you can't abolish?

And yet, the UK still wants to go even further...

"Outlaw possession of written accounts of child abuse says MP [...] For some, the written word is more powerful than the pictures. For some, the written word promotes a graphic image in their mind. [...] Therefore I believe that we crack down on any form of indecent material in the written form so that real children can be safe from abuse. [...]" [source]

This isn't a law which has any kind of impact on the protection of children, it's just people telling us what we can't express or can't think.

Am I really expected to believe that writing "'This'll be our little secret.' whispered Daddy." is so heinous, and that it needs to be hidden away from society?

Point: "But it'll cause somebody to move onto collecting photos and recorded footage of children, or abusing them themselves!"

I've never seen any evidence supporting this. I might as well say "Everyone in a relationship will have an affair." or "All men are cheaters."

Two points, though:

First, let's say someone has photos and recorded footage of children engaged in sexual situations; what evidence is there to say that it'll cause them to go off and molest children?

The second is, as I stated earlier, the fact that I live in the UK, and I openly admit that I am breaking the law. Loli has been illegal here since April 2009. This raises an important question, why do I still look at it? After all, photos and recorded of footage of children engaged in sexual situations are also illegal. I'd be breaking the law either way, so how come I haven't "migrated" onto this?

Drawings do not have a victim in order to produce them. They're drawings, created from scratch. The product of somebody's imagination. But does the fact that they're victimless even matter?

Here's an example:

A person witnesses the rape of a child, goes home and proceeds to draw the rape that was just committed. Should it be illegal to draw that? Should it be illegal to view it?

What if we change the wording slightly?

A person witnesses the murder of somebody, goes home and proceeds to draw the murder that was just committed. Should it be illegal to draw that? Should it be illegal to view it?

Both of these have a victim. Nobody can consent to being murdered, either. Yet one is illegal to draw, the other isn't.

But it's not because a lolicon would hypothetically use abused children that it should be illegal.

Equating a drawing as a child, no matter how naked they are or whatever sexual situation they're in, is asinine. It's like charging people for numerous crimes just because they've played Grand Theft Auto.

Granted, child molesters could perhaps use these drawings to groom children for sex; but grooming children for sex is illegal *regardless* of what's used.

*unzips and takes out his penis*
A: "Hey, put this in your mouth and suck on it like a popsicle, and I'll buy you that new Barbie doll."
B: "Okay!"

Should we now expect Barbie dolls to be banned because they could be used for these nefarious purposes?

Point: "But, what if my child found these images while doing homework online!"

Yes, that could happen.

But your child could also stumble on two consenting adults having sex while doing their homework online. Isn't it your job as a parent to prevent them from finding such material at a young age, until they reach one where they should be able to determine for themselves if an image is personally "disgusting?"

You wouldn't leave a bottle of alcohol out where a child could easily drink it, so why should your parenting and the Internet be any different?

Another major problem is that a lot of the British public don't seem to understand the distinction between words, or do, but synonymize everything as pedophile instead of using the appropriate terms. (The Media are also to blame for this.)

  • Lolicon - A person who has an attraction to young anime, manga or visual novel characters, and has drawings of them erotically posing naked or in sexual situations
  • Pedophile - A person who has an attraction to prepubescents (<10 y/o)
  • Hebephile - A person who has an attraction to pubescents (11-14 y/o)
  • Ephebophile - A person who has an attraction to mid-to-late adolescents (15-19 y/o)
  • Possesser of Abuse... - A person who actually collects or possesses photos and/or recorded footage of children engaged in sexual situations
  • Child molester - A person who actually inappropriately touches or forces themselves upon children

Robul Hoque is a lolicon, not a pedophile; although there are some people out there who can be both lolicons and pedophiles.

And even if he is, it's not a crime to have a sexual attraction to children. If it were, it'd be a crime to be a misanthrope or a sociopath.

I personally have no problem with people who have just an attraction to children or those in their early teens and never act on it.

The ones who actually molest children or collect photos and/or recorded footage simply for the purpose of their own sexual gratification do deserve to be punished by the law, and not some genocidal (Note: b) lynch mob.

But for arguments sake, let's say someone invented the Holodeck from Star Trek - which is a bit of a stretch, but what with the invention of Oculus Rift and other VR technology, we're getting closer towards that - and there are child molesters who use it to have sex with holographic depicitions of children. How many of you would be against that?

I'm guessing a good majority of you would be. Fair enough, but how would you want to go about dealing with that kind of situation?

  • Ban Holodecks?
  • Holographic rights? (Note: a)
  • Make it impossible for someone to have sex with a holographic child?

I find the idea of having sex with holographic children creepy; however, wouldn't it be a good thing that child molesters could have an outlet for their urges? (Note: a)

But unfortunately, anyone who the questions the laws, or the reasoning behind them gets branded as a child molester, or a supporter of child molestation; and so the mass hysteria, paranoid delusion and lynch mobs continue unabated.

It's quite sad, really.

End notes:

(a): The hologram exists in a physical sense - we can touch it, it has sentience, but it's limited to the location of the Holodeck. If we take that into consideration, would it be entitled to rights? Would shutting it down be the same as murdering it?


A while back I stumbled on the eight stages of genocide on Wikipedia. After a while, I realized that If you change one or two things here and there, and apply them to people who've been accused of being pedophiles, child molesters, etc., you see how fucking frightening it is.

Here are two examples:

3. | Dehumanization | One group denies the humanity of the other group. Members of it are equated with animals, vermin, insects, or diseases.

How many of you would equate someone who has nothing more than an attraction to children, and never acts on it, as vermin or a disease?

7. | Extermination | It is 'extermination' to the killers because they do not believe their victims to be fully human.

And so, I end on this, this and this.