Douglas Crockford: Principles of Security
Why Stack Overflow recommends it
Stack Overflow users link it as a reference when explaining or reproducing its one-time pad key reuse demo, and for general web security principles.
Recommended by 1 people across 1 different months, 2012 to 2016.
What it is
A one-hour talk by Douglas Crockford at Yahoo!'s BayJax event in March 2012 on the principles of designing secure software, with a focus on web applications. He builds his case from the origins of language and argues for fundamental principles over tricks and hacks, using demos such as the reuse of a one-time pad key.
What people said
Recommends GitaarLAB · 2012-07 · Stack Overflow · on “html5 svg vs canvas for granite like background”
The site you referenced actually uses a simple 'noize.png' and then uses css3 radial gradients to buildup that background. I know you already knew that, I'm mentioning this for future readers. Given this fact, I'll assume in the rest of my answer you want to learn, not a copy-pasta solution. I've given up on svg looong time ago. But in canvas it's easy and fun... (especially now flash is FINALLY officially dead. Hurray). So as others have already suggested in the comments to your question, why not use a seamless noise image? (you know where to find one :P). You could still embed this image as 'DATA' in the html(, HINT: even or even feed image-data straight into canvas that will render it as
Cites fb55 · 2012-04 · Stack Overflow · on “Canvas shows unexpected colors and won't show an inverted image”
I'm currently trying to replicate the effect shown in Douglas Crockfords presentation Principles of Security [this video] . As a demonstration of the risk of using "One Time Pad" encryption keys twice, he shows two images, encrypts them with the same key and subtracts the one from the other, resulting in both images shown at the same time. My approach uses four canvas elements, one for showing the key, two for loading images and the fourth as the destination for the subtraction. I'm able to generate a (somewhat) random key, load images and encrypt them. Problems start when trying to decrypt an image. For that, I'm loading an image to the first container, encrypt it, then encrypt the second contai
Cites pid · 2016-07 · Stack Overflow · on “How can i access the value of a local variable from within an expression tree”
No you can't with reflection. But there are other methods to do so. As an example, I show you how to export a variable out of the functions' lexical scope. Say you have a method like this: private void f(int x) { // your code here } You also have a piece of code like this: int x_in_f; f(3); x_in_f = /* I want to have the value here */; To get the value out of f() you must export a getter function. As f() returns void , you just could return the getter. In a general case (when f() has a non-void return type) you can leverage an out parameter. Here are both variants: private Func<int> f(int x) { // your code here return () => { return x; }; } or through the out parameter: private void f(int x,