# I got my first dogecoins today posted May 2014

Time to celebrate!

and thanks r/dogecoin for tipping me!

If you want some of my dogecoins just comment :D

comment on this story Hey! I'm **David**, the author of the Real-World Cryptography book. I'm a crypto engineer at O(1) Labs on the Mina cryptocurrency, previously I was the security lead for Diem (formerly Libra) at Novi (Facebook), and a security consultant for the Cryptography Services of NCC Group. This is my blog about **cryptography** and **security** and other related topics that I find interesting.

Quick access to articles on this page:

- - May 2014 - I got my first dogecoins today
- - May 2014 - Notes on ECC (Elliptic Curve Cryptography) & Internship progress
- - May 2014 - Do you know what Elliptic Curve Cryptography is?
- - April 2014 - Toom-Cook multiplication for dummies
- - April 2014 - Why can't I copy PS3 games and play them on another console?
- - April 2014 - Weblang
- - April 2014 - Berlekamp & GO
- - April 2014 - Ruby, Go, Rust

more on the next page...

Time to celebrate!

and thanks r/dogecoin for tipping me!

If you want some of my dogecoins just comment :D

comment on this storyOne last exam, ECC, and then I'm free to do whatever I want (no I still haven't found an internship, but I talked with **TrueVault**, **Cloudflare**, **MatterMark**, **Spotify** and maybe **Matasano** so this has been a good experience nonetheless).

I stumbled upon the notes of Ben Lynn an ex Stanford's student that took an ECC class there. They're pretty awesome and I kinda want to do something like that on this blog. Maybe next year it's a bit late for that :)

comment on this storyWe're learning a lot of algorithm in my **algebre et calcul formel** class. One of them is the **Toom-Cook algorithm** used for multiplication of large integers.

I found a super simple explanation of it on a forum, it helps:

4 commentsSay, we want to multiply 23 times 35.

We write,

p(x) = 2x + 3,

q(x) = 3x + 5.

We are using our realization that any integer can be written as a polynomial.

Here, p(x), represents 23, and q(x), represents 35, when x equals 10.

We write,

p(x)q(x) = r(x).

That is, p(x) times q(x), equals r(x).

So,

(2x + 3)(3x + 5) = ax^2 + bx + c = r(x).

Now,

p(0)q(0) = r(0).

So,

(20 + 3)(30 + 5) = a0 + b0 + c.

Therefore,

c = 15.

Now,

p(1)q(1) = r(1).

Therefore, when we do the substitutions (for x and c),

a + b = 25.

Now,

p(-1)q(-1) = r(-1).

Therefore, when we do the substitutions (for x and c),

a - b = -13.

Now, we already know c, and we just need to find a and b.

We have two linear equations and two unknowns,

a + b = *25,

a - b = -13.

We just add the two equations and we get,

2a = 12.

Therefore,

a = 6.

Now, we can substitute 6 for a in,

a + b = 25,

and we get,

b = 19.

So,

r(x) = 6x^2 + 19x + 15.

Now, we substitute 10 for x in r(x), and we are done,

r(10) = 600 + 190 + 15 = 805.

Believe it or not!

I've always wondered how it is that we can't easily copy the entire content of a CD/DVD/Bluray on another one and play it with a PS1/PS2/PS3 and I guess PS4 and its competition.

Here's part of an answer on psx-scene's forum:

Whenever you insert a disc (bluray one that is) the ps3 drive will look at a

special area of the disc called the Pic Zone(the BD ROM Mark is actually used in movie discs but not in game unlike what I first thought).This area cannot easily be dumped(you'd pretty much need a bluray drive with a hacked firmware) and of course that specific areacannot be burned on any kind of discs or with any kind of burners commercially available.

reading this made me apply to Sony for an internship :)

comment on this storyI've been writing html, xhtml, and now html5 for ages. I think I started in 2001 (13 years ago).

I had to go through `<br>`

becoming `<br />`

becoming `<br>`

again.

I had to go through different doctypes

I had to go through new divs like `<header>`

and `<footer>`

But I never had to go through a syntax change. Why is that? I don't understand why HTML is a language based on tags. It is unnecessary and it just adds time and confusion to typing in html. I haven't ran into any project directed at changing that syntax. And I thought, why not doing it myself? (and if there is already such a project please tell me!)

So I thought about a new language to write static web pages called `web`

or `weblang`

. No tags. Indentation. Simple doctype.

A simple `index.web`

would looks like that:

```
\web:1 // this is a doctype
\head
$title: 'Weblang example';
$css: 'css/app.css';
\body
$header .monheader{
$h1 "Weblang";
}
$section #introduction{
$h2 "What is Weblang?";
$p "Weblang is an elegant way of writing static webpages"
"HTML is annoying to write." // there will be a breakline here
$p{
what about just writing text like this,
it's kinda easier
}
}
// what about just writing text
This is a text block, it will just render as text
in this text I want a list here : $ul{
$li "with text in it";
}
$ul .links{
$li{
$a "more info" href: 'https://github.com/mimoo/weblang';
}
$li $a{
tags can be chained
}
}
$javascript 'js/jquery.js';
$script 'js/script.js' type: 'javascript';
```

This is just a first draft. The biggest problem is that plain text and code is mixed. The trick I used here is to use $ to tell the render engine that it is not plaintext. Might not be super clever. I need to brainstorm a bit more about this.

Also I need to look at sass' code to see how a compiler works. Seems to be a bunch of regex.

2 commentsI knew that my principal cryptography professor Gilles Zémor was a GO player.

Which is pretty amazing in itself :)

But this keeps going on.

I have an algebra class this semester, and I'm trying to understand **Berlekamp's algorithm**. Trying to find videos on youtube about him I discover that he is as well a go player! And doing researches about the game at that! So cool :D

I've been planning to code my next web project with **Ruby on Rails**.

But two languages have also been catching my attention. **Go** and **Rust**.

And today, I ran into two wonderful websites:

Those websites are so pretty that it just makes me want to read them! Great complement to learnXinYminutes.

Now I just have to find a project to code with these languages =)

comment on this storyMy book **Real-World Cryptography** is finished and shipping! You can purchase it here.

If you don't know **where to start**, you might want to check these popular articles:

- - Problems that UDP and only UDP has
- - Proof of Elgamal's semantic security using a reduction to DDH
- - Key Compromise Impersonation attacks (KCI)
- - The 9 Lives of Bleichenbacher's CAT: New Cache ATtacks on TLS Implementations
- - KangarooTwelve
- - QUIC Crypto and simple state machines
- - ASN.1 vs DER vs PEM vs x509 vs PKCS#7 vs ....

Here are the latest **links** posted:

- 22 Oct The Bi-Symmetric Encryption Fraud
- 21 Oct The Pgp Problem: A Critique
- 20 Oct Episode 17: Breaking Wi-Fi With Frame Attacks!
- 19 Oct On The Word “Nonce” In Cryptography And The Uk
- 18 Oct Pcs Multiproofs Using Random Evaluation

You can also **suggest a link**.