Monday, August 4, 2008

Simple Sign-and-Encrypt and why it is flawed, security wise


Defective Sign & Encrypt in S/MIME, PKCS#7, MOSS, PEM, PGP, and XML by Don Davis


"

...

Users and programmers prefer to think about security by analogy with familiar symmetric-key ``secret codes.'' For mail-handling and file-handling, security designers have relied heavily on simple asymmetric encryption and signing, rather naïvely combined. Naïve sign & encrypt has surprisingly different security semantics from symmetric encryption, but the difference is subtle, perhaps too subtle for non-specialist users and programmers to grasp. Indeed, for senders, sign-and-encrypt guarantees the same security properties as symmetric-key cryptography gives. With both types of crypto, the sender is sure that:

  • The recipient knows who wrote the message; and
  • Only the recipient can decrypt the message.

The difference appears only in the recipient's security guarantees: the recipient of a symmetric-key ciphertext knows who sent it to him, but a ``simple sign & encrypt'' recipient knows only who wrote the message, and has no assurance about who encrypted it. This is because naïve sign & encrypt is vulnerable to ``surreptitious forwarding,'' but symmetric-key encryption is not. Since users always will assume that sign & encrypt is similar to symmetric-key ``secret codes,'' they will tend to trust naïve sign & encrypt too much.

..."

Dr Dobbs: Digitally Signing and Verifying Messages in Web Services


Digitally Signing and Verifying Messages in Web Services

Thursday, July 31, 2008

JavaScript casting from string to numeral -- The 0 trick

Try this in the location bar of your browser (this will run the statements through the JavaScript implementation of your browser and write the evaluated value as a new document):

javascript: typeof("17" - 0)

This type casts the string "17" to the number 17. Your result will be number.

BUT:

javascript: typeof("17" + 0)

will type cast the number 0 to the string "0" and will concatenate it to the string "17", so you will get "170". Your result will be string.

AHA!

This looks like a thing that can result in bugs in implementations.

17th USENIX Security Symposium


17th USENIX Security Symposium: http://www.usenix.org/events/sec08/sec08.html

I found some very interesting stuff there in the technical sessions.

Here's the ToC: http://www.usenix.org/events/sec08/tech/contents.pdf

F5 ASM on DevCentral


F5's ASM has its own DevCentral forum: http://devcentral.f5.com/Default.aspx?tabid=53&view=topics&forumid=47

x6 zoon lense for your cell phone


My friend, Dima Rovniagin, referred me to a site that sells gadgets, where they sell a x6 zoon lense for cell phone cameras: http://www.dealextreme.com/details.dx/sku.3570

Wednesday, July 30, 2008

Snapshot of a web page


If you want to have an instant snapshot image of a web page as one would view it in a web page do the following (this is a firefox trick, I think that IE and other browsers have similar tricks):

1. add a bookmark to http://images.websnapr.com/?size=size&key=key&url=%s
2. edit the bookmark's properties: and give a keyword. I used "snap".
3. save
4. goto your browser's location bar and type snap URL where URL is some URL of a web page. Try for example: snap http://shlomoyona.blogspot.com

Cool!

jslint


JSLint -- The JavaScript Verifier.
Online tool to verify and check your JavaScript code.

See: http://www.jslint.com/

לאמיר הערן גוטע בשורות -- שנשמע בשורות טובות -- ברכות וקללות ביידיש

לאמיר הערן גוטע בשורות -- שנשמע בשורות טובות -- ברכות וקללות ביידיש מאת יוסף גורי

את הספר רכש בעבורי (החזרתי לו את הכסף!) חברי אמיר אהרוני לאחר ששמע שהתלהבתי מתאור הספר

מאז שיש לי את הספר על שולחני בעבודה נשמעות באויר קללות וברכות ביידיש מפי כל עובד ועובדת וזה מכניס עוד הנאה להוואי בעבודה.

שלא לומר שאני מתחיל להיות מסמר הערב במפגשים משפחתיים עם המשפחה מצידה של אשתי (מצד הורי, התורכים, אין ידע ושפה אידיים...).

הארגון בספר לא כ"כ מוצלח לדעתי וגם לא המפתחות שמפנים לעיול על פי מספרו ולא גם או רק לפי העמוד בו הוא מופיע.
מאידך, התרגומים גם לעברית גם לאנגלית וגם לרוסית הם שימושיים מאד מאד.

ספר מהנה ומומלץ.

שמחתי לראות כי יש ספרים נוספים של אותו המחבר בסגנון:

גם את אלה אנסה להשיג. מי יודע היכן ניתן להשיג?



"Understanding Shutter Speed" by Bryan Peterson

I wrote a book review for this latest title from photographer Bryan Peterson on Amazon: http://www.amazon.com/review/R2V1NK8SBXGF4U/ref=cm_cr_rdp_perm

Here's the link to the title itself on Amazon: http://www.amazon.com/gp/product/0817463011/ref=cm_rdp_product_img

I already own previous titles from this author " Understanding Exposure", "Learning to See Creatively", " Beyond Portraiture" and " Understanding Digital Photography". This book is very similar: it contains great pictures as examples, it contains short text paragraphs that can be read and understood separately and it provides useful tips and examples.

It is unfortunate that some of the pictures are re-used from previous titles. This also happened in his previous titles. I fail to understand why Peterson does this. Being a photographer for so many years, he surely has enough photos available to be able to exemplify without such re-use of material.

Nonetheless, the pictures are AMAZING and worth alone buying the book. The tips are very useful.

I like the style very much and appreciate the fact that the text is short and without useless "filler text".

Tuesday, July 29, 2008

Bulletproof AJAX by Jeremy Keith

Here's the link to the review on Amazon.com: http://www.amazon.com/review/R3DRUMZL4HNBF6/ref=cm_cr_rdp_perm

Here's a link to the book's page on Amazon.com: http://www.amazon.com/gp/product/0321472667/ref=cm_rdp_product


My book review for Bulletproof AJAX by Jeremy Keith


bought this book in order to get an easy and speedy up-to-date with the AJAX buzzword. This book does the job.

It is a short book (less than 200 pages). The writing style is very inviting and easy to read. I actually read it cover to cover easily in a very short time period.

The examples that walk you through are easy to understand and give the feel for the material.

Terms are very well explained. Jargon is explained too, which helps positioning yourself within the hype buzzword soup you read on the web.

The book explains nicely what AJAX is and what it isn't. It explores a few different ways of doing the same thing. It touches the important topics, giving a feel to them and understanding of "their trick". This is just enough to understand the material.

After reading the book I feed confident to be able to do ahead with my work: I have the basic understanding and the terminology so whenever I need something, I know if it is available, or even relevant or not and then can use an on-line resource or a reference book and complement the necessary knowledge to do the task.

I liked the fact that the author doesn't take for granted a specific browser. He explains how to do things in a way that will be compliant with all browsers. I liked the fact that the author promotes fallbacks, that is, alternative things to happen in case JacaScript is not supported, or that a certain operation is not supported. I liked that the examples and explanations are "backward compatibility motivated".

It is clear that the author is not possessed by the technology itself but thinks primarily about the user and the user experience, thus, compliance and backward compatibility are considered, but also feedback on progress and on changes made to the page and other accessibility issues.


I recommend the book as an introduction to the topic.

Monday, July 28, 2008

אפשר לתרגם מונחים בעברית לויסטה ולאופיס


אפשר לתרגם מונחים בעברית לויסטה ולאופיס

Microsoft Terminology Community Forum

מיקרוסופט מזמינה להגיב, להעיר, להציע ולהצביע על התרגומים שלהם למספר שפות רשמיות. ביניהן עברית.
הנה קישור להזמנה שלהם ביומן הרשת של פורטן (כן, זאת המלה העברית ל-portal הלועזית) השפה של חברת מיקרוסופט.

קמבק בעברית

הצעות לחלופה בעברית למלה comeback: חזבוג

הוא עשה קמבק == הוא קימבק == הוא חיזבג == הוא עשה חיזבוג

חיזבג מבוסס על "חזר בגדול" וגם פונטית מזכיר he's back

יש הצעות מתחרות?