Slashdot Mirror


Practical Cryptography

jpetts writes "If you have an interest in cryptography and spend even a small amount of time looking at the subject on the Internet, you will almost certainly have come across the name Bruce Schneier. His book, Applied Cryptography is widely regarded as the most accessible, and one of the most important books on cryptographic algorithms ever published. Schneier has also published other books, including the less technical Secrets and Lies, an thought-provoking book aimed at getting people to think about the whole of the security landscape, not just cryptography. Now, together with Niels Ferguson, renowned cryptographic expert, and longtime collaborator, another immensely valuable book on security has just appeared." Read on for the rest of jpetts' review. Practical Cryptography author Neils Ferguson and Bruce Schneier pages xx + 410 publisher Wiley rating 10/10 reviewer James Petts ISBN 0471223573 summary Pure Hands-On Cryptographic Gold; invaluable guide for cryptographers.

Schneier is one of the world's foremost experts, not just on cryptography, but also on security. It was as he delved deeper into the security of cryptographic systems that he realised that even though - theoretically at least - cryptography could be made arbitrarily secure, this was one of the more tractable problems in the security puzzle. For this reason, his company, Counterpane repositioned itself as a managed security company, rather than continuing to focus solely on cryptography. This transition was also reflected in his publication of Secrets and Lies (SL), which is very different in tone and focus from Applied Cryptography (AC). So where does Practical Cryptography (PC) fit in, and what does it offer? For me, the answer is that it lies pretty much squarely in the middle of the line reaching from AC to SL.

There is no shortage of products in the cryptography arena, but the vast majority of these attract undisguised scorn from professional cryptographers (at least those who can be bothered to comment on them), and although I am only an amateur in this field, I take it as axiomatic that only peer-reviewed cryptosystems (algorithms, protocols, etc) which have stood the test of time are worth taking even a preliminary peek at. This includes many that are described in AC. However, One of the problems with AC, openly acknowledged by the author, is that it contains essentially no implementation details. Furthermore, the cryptographic field has moved on since its publication, most notably with the adoption of Rijndael as the Advanced Encryption Standard, now a mandated Federal Information Processing Standard.

The source code to AC has been available from pretty much the moment of the book's publication, but one of the problems which faced a would-be cryptographic coder, is how to produce a working cryptographic product based on the routines that one could lay one's hands on. Merely incorporating the source code in a program does not a cryptosystem make: as Schneier points out cryptography is hard. And this is where this new book is invaluable: it tells you in great detail how hard it is, what the hardest parts are, and how you can maximise the return on the effort you may invest in developing cryptographic software.

The book pulls no punches, and does not gloss over any issues relating to implementing cryptographic systems. It deals with all the major components of a practical cryptosystem: the book's major sections are titled Message Security, Key Negotiation, Key Management and Miscellaneous.

Within each of these sections there are several chapters, covering virtually all the salient points imaginable, right down to the fundamentals. For example, the first chapter of the Key Management section deals with the clock. It explains from first principles the need for a clock: "At first glance, [a clock] is a decidedly un-cryptographic primitive, but because the current time is often used in cryptographic systems, we need a reliable clock." It is this sort of attention to particular implementation details that turns PC from a mere recipe book into an invaluable reference and a true cookbook.

Another invaluable feature is the generous use of pseudocode snippets, not only for algorithmic details, such as MACs and block cyphers, but also for higher-level operations like sending and receiving messages.

Ferguson and Schneier are refreshingly frank, too. Where they believe strongly in something, they let you know it. For example, the first paragraph of chapter 23, Standards, contains the statement that "[s]ecurity standards rarely work," while the authors go even further when dealing with X.509 certificates, stating on p.339, "[w]hatever you do, stay away from X.509 certificates. If you need a reason, read [40] and weep". This candour is refreshing, especially when juxtaposed with the weasel words that so many consultants and software vendors seem to rely on. However, this advice is not just given in curmudgeonly fashion, and when the authors discuss the matter of X.509 in a different context, they add, humorously, "[i]f you must use X.509, you have out condolences."

I am tempted to continue to analyse the book at great length, but to save space I will just highlight some further jewels from this work:

  • Implementation issues such as swap files, language-specific memory handling behaviour, caches, etc. are covered in enough detail for you to understand how to do things, and more importantly, how not to do things.
  • Randomness, pseudo-randomness and entropy are covered in enough depth for an implementor to avoid pitfalls, and pseudocode examples are given.
  • Mathematical topics such as prime numbers, groups and large integer arithmetic are described in excellent detail.
  • PKI, its promise, and failure are covered with wit and wisdom.
As you can probably guess from the above description, I believe that the real value of this book lies in the fact that two renowned experts, in both theory and practice, are sharing what works, and more importantly what you should avoid like the plague when working with cryptosystems. This information has until now generally only been available by listening to people like Schneier and Ferguson talk, either one-to-one or at conferences. Even then, the authors point out that even talking to "experts" is not without danger: chapter 25 begins "There is something strange about cryptography: everybody thinks they know enough about it to design and build their own system. We never ask a second-year physics student to design a nuclear power plant. We wouldn't let a trainee nurse who claims to have found a revolutionary method for heart surgery operate on us. Yet people who have read a book or two think they can design their own cryptographic system. Worse still, they are sometimes able to convince management, venture capitalists, and even some customers that their design is the neatest thing since sliced bread." Given this statement, some people might claim that this book is a little hubristic, but I disagree. Paranoia, self evaluation and a healthy scepticism are pre-requisites for assessing, deploying and implementing cryptosystems, but since a sine qua non of reliable crypto is open examination and peer evaluation, I believe that the authors are here simply offering advice, which once you understand more about the issues surrounding crypto, is merely common sense. Schneier and Ferguson have both "earned their bones" in the glaring light of crypto, and this book admirably fills an obvious gap in the literature of the field. There is not, to my knowledge, another book like it on the subject, and had it been published at around the same time as AC, I am sure that it would have been regarded by the NSA as even more dangerous than that book. After all, it is frighteningly easy for the uninformed to take good cryptographic algorithms and protocols, and through ignorance turn them into worse-than-useless crypto products.

Is there anything I didn't like about the book? Frankly, no. Some might complain that it is priced too high (it lists at USD50 for the softcover, and USD70 for the hardcover), but it is printed on acid-free paper, and the density of useful advice is such that it outstrips in value many works which cost half the price or less.

If you are interested in crypto, do yourself a favour: buy this book.

You can purchase Practical Cryptography from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

140 comments

  1. DMCA by ih8apple · · Score: 5, Insightful

    Isn't this review a violation of the DMCA?


    I'm not joking...if you take the wording of the law literally?

    1. Re:DMCA by Anonymous Coward · · Score: 0

      Isn't this review a violation of the DMCA?

      That depends on the judge and the $$$ spent on lawyers.

    2. Re:DMCA by ShadowBottle · · Score: 5, Funny

      OMG! He is going to get SO busted. Everybody got their lighters ready for a crypto-book burning session? Always remember, security comes after the wants and needs of the power-mad robber barons of the DMCA. NOOOBODY EXPECTS THE DMCA! Our Cheif Weapon is Ignorance, Ignorance and fear.. no no no our TWO cheif weapons are ignorance, fear and a ruthless abandon from the ways of free thought.. no no no our THREE cheif weapons are ignorance, fear, a ruthless abandondon of free though and ignorance again.. yes.. OUR FOUR CHEIF WEAPONS ARE... Fear that which you cannot understand. ( C; And yeah.. /. is going to get nailed for providing information about where to get information on information that involves circuitous ways of securing information. Fscking rat bastards. May they all burn in hell... securely. ( C: ShadowBottle

    3. Re:DMCA by ShadowBottle · · Score: 1

      Anon Coward... what? Can't get a login.. afeared are ye? Stupid? Are you illiterate? Have you not seen the DMCA go after people for providing links and information on where to just FIND information on circumnavigating copyrighting, etc? Smoke something besides crack and c0ck plz K thx

    4. Re:DMCA by Tom7 · · Score: 1

      No. What possibly could be a violation? He's *describing* a book that *describes* encryption algorithms. The DMCA bans *devices* that *circumvent* *technologies* that *control access* to *copyrighted works*. Encryption algorithms don't usually control access, and there's no copyrighted work here (aside from the book itself and the review), discussions and pseudocode don't constitute devices, and there's no circumvention.

      Do yourself a favor and read the DMCA. http://www4.law.cornell.edu/uscode/17/1201.html
      I t is a lot more specific than you think. It doesn't outlaw encryption, and especially not reviews about discussions of encryption.

    5. Re:DMCA by Anonymous Coward · · Score: 1, Insightful

      Encryption algorithms don't usually control access

      Considering that the only reason to use an encryption algorithm is to control access to a message, I have to say you don't have a clue what you're talking about. Not only that, your humor detection circuit seems to be on the fritz.

    6. Re:DMCA by Sloppy · · Score: 1
      No, the algorithms have significant other uses, besides bypassing tech measures that limit access to copyrighted works, without authorization.

      (And so will DeCSS, if people start using CSS as an alternative to Rot-13ing their Usenet postings. ;-)

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    7. Re:DMCA by Anonymous Coward · · Score: 0

      Uh, your keyboard seems to be inserting a lot of random asterixes - might want to get that checked out ...

    8. Re:DMCA by kingkade · · Score: 1

      Humor detection? The original post said "I'm not joking".

      Considering that the only reason to use an encryption algorithm is to control access to a message

      I don't even know what to type here. I'm stunned, frankly.

    9. Re:DMCA by yourmom16 · · Score: 1

      Usenet postings are copyrighted unless relinquished into the public domain.

      --
      "We have got to make Stan understand the importance of voting, because he'll definitely vote for our guy." - South Park
    10. Re:DMCA by Tom7 · · Score: 1

      > > Encryption algorithms don't usually control access
      >
      > Considering that the only reason to use an encryption algorithm is to control access to a message, I have to say you don't
      > have a clue what you're talking about. Not only that, your humor detection circuit seems to be on the fritz.

      "Technological measure that controls access to a work" is defined in the DMCA. They are not talking about the english word "control" or "access," though the meaning is similar. Read the law if you want to understand what is going on; then I would love to hear your legal argument for why this book is--by some stretch of the imagination--a DMCA violation.

      In this case, encryption wouldn't qualify unless it is supposed to be decrypted as part of the normal process of making use of a copyrighted work. That was true of CSS, perhaps, but not of the encryption algorithms in this book.

      Furthermore, it has to apply to a copyrighted work -- since encryption is often (if not primarily) used to encrypt non-copyrightable content (requests sent by web browsers, ssh sessions), it can hardly be considered a DMCA access control measure anyway.

    11. Re:DMCA by Anonymous Coward · · Score: 0

      And you are spelling 'asterisk' wrong.

  2. FP by jpetts · · Score: 5, Informative

    It's probably bad form to be FPer to one's own review, but just to let you know there is an oopsie in my review concerning experts. A paragraph got lost (my fault). Schneier and Ferguson start their chapter with the warning about self-proclaimed experts I mention, but they realldo do recommend using experts: just be careful that they really ARE experts, not flim-flam artists.

    --
    Call me old fashioned, but I like a dump to be as memorable as it is devastating - Bender
    1. Re:FP by B3ryllium · · Score: 4, Funny

      Whenever I'm contracted as a security expert, I *always* highly recommend ROT13.

      I'm looking into this thing called a "caesar cipher", but it's slow going. I think it needs to be applied 13 times before the data is sufficiently encrypted.

    2. Re:FP by Bingo+Foo · · Score: 2, Funny
      I'm looking into this thing called a "caesar cipher"

      Beware: it comes undone on March 15.

      --
      taken! (by Davidleeroth) Thanks Bingo Foo!
  3. good companion to ac by Horny+Smurf · · Score: 2, Informative
    For those of you (including myself) who were expecting an updated version of the Applied Cryptography, this book is NOT it. Based on the pre-publication blurbs here and there, I thought it may be a simple how-to book without too much theory. The book didn't turn out to be that sort of thing either.


    This book is, sort of an executive summary of Applied Cryptography (AC), with some updates. It touches upon the insights that Scheneier mentioned in Secret and Lies (like crypto is the easy part and that won't solve security). It mentions some newer material, notably AES related stuff. The description is, in effect, a simplified version of AC. Also, it doesn't try to cover everything, and yes, some explanations about the practical applications are stressed slightly more than in AC.


    So if you want to be practical, just go over the essential and latest stuff, this is a good book to read. But I must say that it's not as fun to read as AC. Not as many jokes, and absolutely no crazy stuff (like bio-computing and the significance of dark matters). Oh well, maybe that's what being practical means... But it doesn't give you the feeling of throughness that AC gave. Maybe this comes from my reading AC too much in detail (I actually translated the whole book into Japanese), but I think it is inherent in the book itself. In trying to cover as much ground as possible, the book hurries a lot.


    So if you are in a hurry to cover just enough important stuff, get this book. And if you need some explanation on the newer stuff, get this. But I also recommend getting AC as well.

    1. Re:good companion to ac by Parsa · · Score: 3, Interesting

      Good try. I just looked this book up on Amazon.com and this is the only review of the book posted. Great cut and past job.

      --
      Abiit, excessit, evasit, erupit.
    2. Re:good companion to ac by Anonymous Coward · · Score: 0

      yeah, It's a good book, and I thought other amazon.com shoppers should know what I thought of it.

  4. I'll tell ya what I think... by TopShelf · · Score: 4, Funny

    Jakb sdf aksvbmk aklsdfj alksjd SjkczLzeq adjskf sdkimz zoikjp ead!

    --
    Stop by my site where I write about ERP systems & more
    1. Re:I'll tell ya what I think... by Anonymous Coward · · Score: 0

      huh, I think the encription key got lost in mid post. Please resubmit your post with the proper encription key.

    2. Re:I'll tell ya what I think... by AlbanySux · · Score: 1

      What kind of encryption is that?!?! it shoudl either be formatted in blocks of 5 or without spaces.. you are giving away entirely too much information about sentance structure. Its quite apparent you didn't read any of his other books..

    3. Re:I'll tell ya what I think... by ehiris · · Score: 1

      Is it for real or should I give up?

    4. Re:I'll tell ya what I think... by YahoKa · · Score: 1

      I think it's made up. It was just a joke anyways.

    5. Re:I'll tell ya what I think... by Anonymous Coward · · Score: 0

      How do you know those spaces indicate spaces in the plain text? They could be a result of the algorithm.

    6. Re:I'll tell ya what I think... by Anonymous Coward · · Score: 0

      Lots of letters from the middle (asdfghjkl) row of the keyboard, and in patterns that look like he typed semi-randomly.

    7. Re:I'll tell ya what I think... by Anonymous Coward · · Score: 0

      A person with real cryto knowledge would have used this format

      JAKB SDFA KSVB MKAK LSDF JALK SJDS JKCZ KZEQ ADJS KFSD KIMZ ZOIK JPEA D!

      unless what you wrote here is the unencrypted version.

    8. Re:I'll tell ya what I think... by mirko · · Score: 1

      Like this ?

      --
      Trolling using another account since 2005.
    9. Re:I'll tell ya what I think... by Anonymous Coward · · Score: 0

      Jung xvaq bs rapelcgvba vf gung?!?! vg fubhqy rvgure or sbeznggrq va oybpxf bs 5 be jvgubhg fcnprf.. lbh ner tvivat njnl ragveryl gbb zhpu vasbezngvba nobhg fragnapr fgehpgher. Vgf dhvgr nccnerag lbh qvqa'g ernq nal bs uvf bgure obbxf..

  5. But please keep in mind: by burgburgburg · · Score: 4, Funny
    All of this is now officially illegal.
    Cryptography supports terrorism.
    Reading about implementing cryptography supports terrorism.
    Reading reviews about books about implementing cryptography supports terrorism.

    Now turn off the computer, stand over there in the corner and we'll be by to pick you up in a little while. And remember, running supports terrorism.

    1. Re:But please keep in mind: by sapped · · Score: 2, Funny

      And remember, running supports terrorism.

      No, driving off in your SUV supports terrorism.

    2. Re:But please keep in mind: by (54)T-Dub · · Score: 2, Funny

      Posting a warning to terrorists about their impending arrest is Definitely supporting terrorism.

      --

      "I can not bring myself to believe that if knowledge presents danger, the solution is ignorance" - Isaac Asimov
    3. Re:But please keep in mind: by Anonymous+Brave+Guy · · Score: 1
      Now turn off the computer, stand over there in the corner and we'll be by to pick you up in a little while. And remember, running supports terrorism.

      Everybody runs...

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    4. Re:But please keep in mind: by warpSpeed · · Score: 1
      No, driving off in your SUV supports terrorism.

      What is Jesus is you co-pilot?

    5. Re:But please keep in mind: by MAXOMENOS · · Score: 1
      Listing ways that one can support terrorism supports terrorism.

      You terrorist!

    6. Re:But please keep in mind: by odie_colonie · · Score: 1

      Don't run, you'll only die tired!

  6. Practical vs Applied by Blaine+Hilton · · Score: 4, Interesting
    I'm glad to see a book on practical cryptography. I like reading about the theory behind how things work, but on the job when I'm working on websites and such I need a reliable way to protect sensitive information and not a bunch of words from theorists.

    Hopefully this helps the good guys more then the bad ones though...

    Go calculate something.

    1. Re:Practical vs Applied by CodeMonky · · Score: 0, Redundant

      Schneir is actually releasing a followup to AC centered around actually using crypto in everyday applications.

      He mentioned it in this month Cryptogram.

      --
      --"Karma is justice without the satisfaction"
    2. Re:Practical vs Applied by CodeMonky · · Score: 1

      Here is a link to the actual book:
      http://www.counterpane.com/book-practical.h tml

      --
      --"Karma is justice without the satisfaction"
    3. Re:Practical vs Applied by flynt · · Score: 4, Funny

      Schneir is actually releasing a followup to AC centered around actually using crypto in everyday applications. He mentioned it in this month Cryptogram.

      In case you hadn't noticed, the Slashdot story you just posted about your comment to is a review of that book.

    4. Re:Practical vs Applied by Anonymous Coward · · Score: 5, Insightful

      I'm sorry, but it is attitudes (and books) like these that give rise to the woeful state of affairs that have existed in "practical cryptography" over the years. Schneier's book, while certainly well-meaning, has promoted the idea that you don't need to understand formal notions of security to be a serious cryptographer. It is hard to overestimate the damage that this idea (and this) book have caused.

      Currently, the only way to argue that a cryptosystem is secure is by reducing its security to that a well-studied primitive, like factoring, DLP, even DES! (Of course, it is true that we don't currently know of any explicit intractable problems, but if you are going to use a cryptosystem handed to you on a platter, better to know that its security has an undeniable link to factoring than merely that some group of software engineers somewhere couldn't find a way to break it.)

      The point is that there is no "royal road" to cryptography. If you want to be a serious cryptographer, you need to get your hands dirty: understand what a reduction is, learn some complexity theory, learn some computational number theory. Of course, it is fine for end users or businesses to use prepackaged systems if they trust them. The dangerous road is the middle road, where we have "experts" who don't really understand the foundations of the subject.

      If you want a laugh, read the description of pseudorandomness in Schneier's book and cf. that of, say, Goldreich's.

    5. Re:Practical vs Applied by CodeMonky · · Score: 1

      Laugh.
      Woops. Saw Applied Crypto linked in the description and that overroad the title.

      --
      --"Karma is justice without the satisfaction"
    6. Re:Practical vs Applied by Crispy+Critters · · Score: 2, Interesting
      I'm sorry, but it is attitudes (and books) like these that give rise to the woeful state of affairs that have existed in "practical cryptography" over the years. Schneier's book, while certainly well-meaning, has promoted the idea that you don't need to understand formal notions of security to be a serious cryptographer. It is hard to overestimate the damage that this idea (and this) book have caused.
      I find it astonishing that a book that has only been out a few weeks has caused much damage.

      Unless you are thinking of Schneier's first book on cryptography. If you knew what you were talking about, you would know that he wrote Secrets and Lies mainly to explain that crytpographic protocols by themselves don't solve the whole problem. He thought his first book might leave that impression, and he wanted to correct it.

      It sounds like you are arguing that this information must be locked up because it is dangerous, and the "serious cryptographer[s]" will then decide who gets access to it and who doesn't. This is disgusting elitism.

      Sure, lots of people pass themselves off as experts based on reading a book. The problem is these people and the people who believe them, not the book. Some programmers write buggy code in operating systems. Does this mean that no one should write a book about operating systems to protect us from people who read the book and then write buggy code? Any competent person with training or education knows where the limits to his knowledge are. Anyone who doesn't know this is incompetent, and that can't be blaimed on a book.

    7. Re:Practical vs Applied by eXtro · · Score: 1
      Go read Schneier's web site and learn something. He has a section on how to become a cryptographer. He even gives a self study course in block cypher cryptanalysis. He asserts exactly what you do: to become a cryptographer you need to get your hands dirty. He has credentials though. You don't.


      These books are like popular science books such as A Brief History of Time, or Cosmos. They're not about making people an expert in a field, they're about helping the layman learn a little bit about a field.

    8. Re:Practical vs Applied by seaan · · Score: 1

      Schneier's book, while certainly well-meaning, has promoted the idea that you don't need to understand formal notions of security to be a serious cryptographer.

      I'd like to see the AC expand upon this, since I'm not quite sure what he means. Given the typical short attention span of /. I'm going to make a guess on what he meant; and comment on that guess. If I have guessed wrong, please post a follow-up comment.

      Schneier himself has mentioned the problem with poor crypto system designs (and the self-taught 'expert' saying: "...but I read Applied Cryptography." :-) This book is really the perfect opposite of that - it talks about many design problems and constantly warns people to seek expert help during system design.

      If someone wants to be a cryptographer, this book won't help them much (see my other post about lack of details). But this booked was not targeted to cryptographers in the literal sense; it was targeted towards designing systems that use cryptography.

      The dangerous road is the middle road, where we have "experts" who don't really understand the foundations of the subject.

      This is where I start to have problems with your post. Perhaps it depends upon your definition of what understanding "foundations" is, or what you mean by learning "some" complexity and computational number theory. At a high level, someone who is just designing a web application does not need to know any of those things. They do need to know the benefits and negatives of SSL/TLS, basics of key management, threat issues and the like. For people like these, Practical Cryptography is just fine.

      Even at a lower level, a crypto system designer does not need a full understanding of cryptographic primitives. For example you mentioned factoring; a designer does not need to know the details of the general field number sieve method; but they do need to know that there are a variety of factoring methods that are slowly improving in efficiency when it comes time to select an algorithm and key length. Perhaps surprisingly to you, even than books like Schneier's can be useful. I know that I often start with Applied Cryptography because of the good overviews, before moving to another book for more details (like the CRC Handbook).

    9. Re:Practical vs Applied by dwsauder · · Score: 1
      Perhaps you are referring to the "attitudes" of the person whose message you were responding to.

      After reading the review (I have not read the book being reviewed), I think your concerns are unfounded. Or better yet, your concerns are the reverse of the concerns of the book's authors. As I understand it, from reading the review, the authors are concerned that those who understand cryptography from a theoretical point of view -- that is, the "academics" -- would be the ones to create ineffective cryptosystems. Your concern is that those who don't understand the theory would be the ones to create bad crypto systems. The goal of the book is to make implementors aware of issues that they wouldn't otherwise be aware of. Just an example: a core dump writes all of a process's memory image to a disk file, possibly exposing sensitive data such as private keys. How many academics, who know why AES is supposed to be secure, do you think understand about core dumps?

      And that gets to the reason why I think your concerns are unfounded. As a protocol designer, I can take those academics at their word when they say that AES is considered secure. But as I design a protocol, there are many other things that I need to be aware of, like how a certificate can be spoofed, or how the million message attack can be used to guess the symmetric encryption key. The point of this book is to help protocol designers and implementors realize that the design and implementation of a secure protocol is serious business.

  7. you know, by Cheapoboy · · Score: 0, Flamebait

    Buying this book will probally send out alot of red flags with the D.H.S, what with the patriot act and all...

    1. Re:you know, by exhilaration · · Score: 2, Funny
      Especially if you're non-white, non-Christian, and of foreign descent.

      I too will be paying for this with cash.

    2. Re:you know, by Cheapoboy · · Score: 1

      CHRIST I'M SO FUXX0RD! my great-grandmother was native american! they'll link her to the 60s A.I.M movement and link that to Al Queda! OMFG! on a side note when did the USA become the USSR? I think I missed that memo...

    3. Re:you know, by Anonymous Coward · · Score: 0

      50% funny + 50% flamebait makes something flamebait how does modding work? should the 2 just cancel each other out? just curious...

  8. Re:svefg cbfg by Delirium+Tremens · · Score: 0
    svefg cbfg
    ROT13[Guvf vf bar bs gur orfg Svefg Cbfgf rire!]

    (But your genius will be unappreciated by the Slashdot moderators...)

  9. Applied Cryptography by msheppard · · Score: 4, Interesting

    I've always liked the tagline on the back of the Applied Cryptography book:
    "The Book the National Security Agency wanted never to be published..."

    M@

    --
    Krispy Cream is people
    1. Re:Applied Cryptography by Crispy+Critters · · Score: 1
      A colleague once told me that the world was full of bad security systems designed by people who read Applied Cryptography" - Bruce Schneier (author of Applied Cryptography). Quote from Secrets & Lies.
      I am regularly asked what the average Internet user can do to ensure his security. My first answer is usually "Nothing; you're screwed." - Bruce Schneier
  10. Older stuff is a must read... by (H)elix1 · · Score: 4, Interesting

    Applied Cryptography is a must read. Few books invoke the proper fear and respect cryptology deserves, with example after example of why your l33t encryption should not be used for anything more valuable than your Slashdot UID. Great examples, solid code, lots of history... If this is even half the book Applied Cryptography was, get your checkbook ready.

    1. Re:Older stuff is a must read... by fermion · · Score: 4, Interesting
      Let me add that though Applied Cryptography is a dauntingly dense book, one can get great benefit from the first hundred pages. The first section of the book develops background material and basic understanding of the issues. To use the authors' physics example, reading a first semester physics book will not teach you physics, but it will teach enough of the science to defend yourself against those who would abuse it.

      As the reviewers states, the algorithms have changed over the past several years, but it may be more important to remember that the basic issues have not. People are still trying to pass off obviously flawed protocols as good security measures.

      --
      "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
    2. Re:Older stuff is a must read... by ianjk · · Score: 1

      If this is even half the book Applied Cryptography was, get your checkbook ready.

      I donno if the checkbook is a good idea. Probably unmarked bills, nonsequential. Mabey have your grandmother go out and buy it.

  11. Too expensive? by analog_line · · Score: 4, Insightful

    Is there anything I didn't like about the book? Frankly, no. Some might complain that it is priced too high (it lists at USD50 for the softcover, and USD70 for the hardcover), but it is printed on acid-free paper, and the density of useful advice is such that it outstrips in value many works which cost half the price or less.

    Taking a look at my paperback copy of Applied Cryptography, it's listed at $55, so I hardly consider that any more expensive. And I paid full cover price for this bugger, as opposed to getting it online for a song, like I should have.

    I don't think Applied Cryptography had a hardcover edition available, at least of the Second Edition. I certainly may consider picking that thing up. Hopefully it'll be able to stick together for awhile.

    And on another note, what isn't printed on acid-free paper these days? Aside from little paperback novels, etc. I thought that was all done away with.

    1. Re:Too expensive? by ssimpson · · Score: 1

      I totally agree - AC2 was well worth the money. FWIW AC2 was available in hardcover - Amazon still sell it at an unpleasant 85USD!

      --
      "Mary had a crypto key, she kept it in escrow, and everything that Mary said, the Feds were sure to know."
    2. Re:Too expensive? by mttlg · · Score: 1

      Taking a look at my paperback copy of Applied Cryptography, it's listed at $55, so I hardly consider that any more expensive.

      Of course, if you compare it to Secrets and Lies, which was sent in duplicate for free to anyone who wanted it, $50-70 (or even $30 for the paperback at Bookpool) is a lot more expensive. But I guess mailing out tons of free books isn't a very good business model these days...

    3. Re:Too expensive? by Breakerofthings · · Score: 1

      I have a Hard Cover copy of Applied Cryptography, 2e, so I can say, at least, that they do exist.

    4. Re:Too expensive? by eric_ste · · Score: 3, Informative

      HAC can be downloaded from here

      http://www.cacr.math.uwaterloo.ca/hac/

      and many other places.

    5. Re:Too expensive? by harakh · · Score: 1

      Sweet! Thanks for the link. Got AC2 in paperback but more books are always nice! now to find a decent laser...

    6. Re:Too expensive? by analog_line · · Score: 1

      Secrets and Lies wasn't exactly a manual for information security. It was much more of a (sorely needed at the time, and still to a certain extent) book to evangelize the need for information security, and to try to explain to people not in the field why exactly it was so important. Personally, I didn't learn anything new about information security, but I did learn a lot of good ways to explain why it's so important to people who have no basis for understanding why. And I've loaned it out a lot, and it's helped change a lot of people's thinking about security, and why having "password" as your password is a real bad idea.

  12. That's why... by Anonymous Coward · · Score: 0

    ...I'll be buying it with cash, just like I buy all my other crypto and security books.

  13. At the very least... by Ratphace · · Score: 5, Funny

    ...you can look forward to your name being recorded with the FBI when you visit the local library to check this book out along with a copy of 'the catcher in the rye'

    1. Re:At the very least... by jpetts · · Score: 4, Funny

      you can look forward to your name being recorded with the FBI when you visit the local library to check this book out along with a copy of 'the catcher in the rye'

      Hmmm, maybe the PATRIOT Act is a ploy by authors to make sure we BUY their books (with cash, natch...), instead of checking 'em out from libraries...

      --
      Call me old fashioned, but I like a dump to be as memorable as it is devastating - Bender
  14. Applied Cryptography by Prof.Phreak · · Score: 5, Funny

    His book, Applied Cryptography is widely regarded as the most accessible, and one of the most important books on cryptographic algorithms ever published. "A colleague once told me that the world was full of bad security systems designed by people who read Applied Cryptography" - Bruce Schneier (author of Applied Cryptography). Quote from Secrets & Lies.

    --

    "If anything can go wrong, it will." - Murphy

  15. Accessible? by Bingo+Foo · · Score: 4, Funny
    Calling the book "accessible" is hardly a compliment for a book on crypography, isnt' it?

    I'd rather see a review like: "This book was so impenetrable that teams of scientists in academia and the NSA, working with the online computing grid will take many times the age of the universe to understand the first chapter alone."

    --
    taken! (by Davidleeroth) Thanks Bingo Foo!
  16. Acid-free paper? by cperciva · · Score: 3, Funny

    I'm really glad this is printed on acid-free paper. Because, you know, I'm really likely to be wanting to read this book fifty years from now.

    Before you worry about finding a storage medium which will survive for a long time, think about how long the information you're storing will be useful.

    1. Re:Acid-free paper? by Ageless · · Score: 1

      Well, RSA, one of the algorithms presented in this book is now about 20 years old and is still as, if not more, important today than it was 20 years ago. It's no 50 years but I bet we'll still be using RSA in another 10.

    2. Re:Acid-free paper? by hardburn · · Score: 1

      Depends on if Quantum Computers become practical in that timeframe. If they do, RSA (and a lot of other crypto algorithms) become useless.

      --
      Not a typewriter
  17. On a somewhat related note, by Anonymous Coward · · Score: 1, Insightful

    I wish that the bignum libraries were a little more straightforward. For example, lots of cryptographic algorithms involve enormous numbers like 1024 bit primes and so forth. But I think libcrypto's bn_* function family is something like 4000 lines of code, and GMP is enormous too. For secure applications, I want to be able to understand and audit the entire library, so I wish they were written for readability instead of speed or whatever they're currently going for. The encryption protocol is useless if there is an overflow on line 8 billion of some underlying library.

    1. Re:On a somewhat related note, by Prof.Phreak · · Score: 1

      Readability of such things often sacrifices speed. Ie: multiplication can be done in like maybe 7 or so lines of C, yet if you use FFT the code (& its speed) increases.

      A very good straight forward implementation of most basic algorithms (addition, subtraction, multiplication, division) can be found in BigInteger class in Java source code (one that comes with the SDK). Basically they took word-for-word what's in the Knuth's The Art of Computer Programming Vol. 2, and implemented it in Java.

      --

      "If anything can go wrong, it will." - Murphy

    2. Re:On a somewhat related note, by nestler · · Score: 2, Insightful
      I think it is somewhat unreasonable to expect a big number (BN) library to be completely transparent on a casual reading. Public key (BN) operations in software are very slow. The OpenSSL implementation uses every optimisation it can to speed up its BN operations, just like compiler writers do everything they can to optimize the compiler output.

      Did you write your own compiler? No, well have you read every line of gcc? Especially all of the complicated optimizer that makes the binary run faster? Even if you wrote a very dumb BN library that was easier to read, you would still have to worry about an "overflow on line 8 billion of some underlying library" (your compiler in this case).

      I agree that OpenSSL's BN library could be better documented internally, but I don't think they should unoptimize it for clarity. People want transparent crypto, meaning they don't like experiencing 100-fold slowdowns when they add crypto to their application. BN optimization is critical in minimizing this slowdown (CRT, Montgomery reduction, sliding windows, Karatsuba, etc.).

    3. Re:On a somewhat related note, by Anonymous Coward · · Score: 0

      Thanks for the thoughtful reply, but I still disagree. How value of the optimizations has decreased and will continue to decrease as computers become faster. If you like, you can think about writing obvious code as optimizing in terms of the amount of time it takes a human to understand it. If in 10 years my obvious code takes N time (N being some time so short that it is negligible to humans) it won't matter that the optimized code takes one tenth of N.

    4. Re:On a somewhat related note, by Prof.Phreak · · Score: 1

      If in 10 years...

      A lot of things can happen in 10 years...

      Also those are not some "temporary" optimizations. There are simply better (but more complex) methods of doing numerical things - so in 10 years, they'll still be faster.

      AND, people will always find better uses for CPU power IF it is available (if you don't use it up by bloated code).

      Can you say ray-traced true-live-movie-quality DOOM 7? (I'm sure that can bring down to its knees any computer we can come up with in the next 10 years).

      --

      "If anything can go wrong, it will." - Murphy

    5. Re:On a somewhat related note, by Anonymous Coward · · Score: 0

      And by "How value", I mean "The value". Cough. Coffee.

    6. Re:On a somewhat related note, by Anonymous Coward · · Score: 0

      There's no reason obscure code can't be commented properly, though. That would enhance readability without sacrificing speed.

    7. Re:On a somewhat related note, by plcurechax · · Score: 1

      There's no reason obscure code can't be commented properly, though.

      But most people are not willing to read the background mathematical papers needed to understandard any resonablely terse comments.

      Or have you read Discrete Weighted Transforms and Large-Integer Arithmetic by Richard Crandall and Barry Fagin? (And "How Fast Can We Multiply?" in Knuth's Art of Computer Programming vol. 2)

  18. Definitive Crypto Books... by ssimpson · · Score: 3, Informative

    I can't comment on Practical Cryptography as Wiley haven't yet shipped my pre-ordered copy of the book, grumble.....

    BUT I can recommed 2 books that any person interested in implementing cryptography should have on their shelf:

    --
    "Mary had a crypto key, she kept it in escrow, and everything that Mary said, the Feds were sure to know."
  19. I like the joke at the bottom of the X.509 link by ralico · · Score: 4, Funny

    At the bottom of the X.509 certificates link

    An engineer, a chemist, and a standards designer are stranded on a desert island with absolutely nothing on it. One of them finds a can of spam washed up by the waves.

    The engineer says "Taking the strength of the seams into account, we can calculate that bashing it against a rock with a given force will open it up without destroying the contents".

    The chemist says "Taking the type of metal the can is made of into account, we can calculate that further immersion in salt water will corrode it enough to allow it to be easily opened after a day".

    The standards designer gives the other two a condescending look, gazes into the middle distance, and begins "Assuming we have an electric can opener...".

    --

    SCO to Hell
    1. Re:I like the joke at the bottom of the X.509 link by Anonymous Coward · · Score: 0

      Odd, I thought Spam had a pull tab.

  20. Worst. Whoring. Ever. by Anonymous Coward · · Score: 1, Funny

    So you get 3 karma points for submitting an article and THEN in the comments section you add something you "forgot" to include in your review and get modded up +5. How can I get in on this scam?

  21. I've always thought... by mattsucks · · Score: 4, Funny

    A bit OT, but I've always thought it would be intersting to see a cryptology book released in electronic form .... encrypted. Kind of a "you must be at least this tall to ride this ride" kind of thing.

  22. Re:Worst. Whoring. Ever. by Anonymous Coward · · Score: 0

    slurp slurp slurp

  23. Thta book isn't entirely necessary... by alchemist68 · · Score: 0

    in today's world, which is primarily occupied by Micro$oft zombies. Why, I can encrypt my documents manually, employ a random encryption algorythm, and read them [with my eyes] even while encrypted! Take a look here:

    !dAOl Si gNiLWoH EhT HO !sTHgIN eTiLNoOm No TNeMeC DLoC eNoTs eHt tSnIAgA lAEnYObwOc SEpaR OCaTRdMc

    To the average Borg drone, this looks like M$ Windows just before a fatal crash, and quite possibly THE BLUE SCREEN OF DEATH! Hence, the drone will quickly exit the document, save as many other open documents, and restart the computer.

    1. Re:Thta book isn't entirely necessary... by Anonymous Coward · · Score: 0

      Wow, apparently this isn't only a Microsoft junkie problem - I read your post from both Solaris and MacOS and have no idea WTF you're talking about.

      Even the lines that appear to be plain text have no apparent meaning!

    2. Re:Thta book isn't entirely necessary... by Anonymous Coward · · Score: 0

      It's written backwards using a random mix of upper and lower case letters. How clever!

      There is a message about some action being taken by CmdrTaco against CowboyNeal on moonlite nights.

    3. Re:Thta book isn't entirely necessary... by Anonymous Coward · · Score: 0

      It's written backwards using a random mix of upper and lower case letters. How clever!

      There is a message about some action being taken by CmdrTaco against CowboyNeal on moonlite nights.

    4. Re:Thta book isn't entirely necessary... by charlieo88 · · Score: 1

      !dAOl Si gNiLWoH EhT
      ^^^^

      Back to the drawing board for you. Seems your encryption doesn't maintain data integrity.

    5. Re:Thta book isn't entirely necessary... by alchemist68 · · Score: 1

      In keeping with the Slasdot tradition, and to approximately half of our readership, I mis-spelled "loud" as "load". "A" is still a vowel like "u"; some would argue it depends on the usage.

    6. Re:Thta book isn't entirely necessary... by BreakWindows · · Score: 1

      So this security...it happens through obscurity? Fascinating! I find this intriguing, and I wish to subscribe to your monthly cryptogram, Mr. Schneier.

  24. What about HAC? by mh_cryptonomicon · · Score: 5, Informative

    Applied Crypto is certainly a quality, wide-ranging tome on crypto. For years though, there have been a couple very good books with more implementation details. The Handbook of Applied Crypto from Menezes, et al comes immediately to mind. Either of the two books by Neal Koblitz are excellent. I also like to recommend Decrypted Secrets from Bauer. The Handbook of Applied Crypto is available as a free download from the author's site:

    1. Re:What about HAC? by plcurechax · · Score: 1

      Other than the Handbook of Applied Crypto, the rest offer no implementation details or practical advice.

    2. Re:What about HAC? by mh_cryptonomicon · · Score: 1

      I'm not sure I understand what you mean by "practical." I found all of them to have very good things to say about practical implementations. If you're just looking for source code, then no, they don't offer source code. If you're looking to implement a crypto algorithm for use in a real system, I wouldn't try to do it without them. The commentary at the end of each chapter in HAC is somewhat scattered and haphazard, Koblitz' books present a lot of this information in a structured way.

  25. Remember to format the ciphertext, dude by apankrat · · Score: 2, Funny

    > Jakb sdf aksvbmk aklsdfj alksjd SjkczLzeq adjskf sdkimz zoikjp ead!

    Jakbs dfaks vbmka klsdf jalks jdSjk czLze qadjs kfsdk imzzo ikjpe adxxx

    --
    3.243F6A8885A308D313
  26. Handbook of Applied Cryptography by staaktdenarbeid · · Score: 5, Informative

    A classic for cryptographers is Handbook of Applied Cryptography by Menzenes, Van Oorschot and Vanstone. Very accessible imho. You can even download it and read it completely before you buy it.

  27. Re:decrypt this and you shall learn something my s by Anonymous Coward · · Score: 0

    should be

    1f7301f3 and 4fddfb54

    it is worth it ...

  28. Book Review, Reprint by drgroove · · Score: 0, Funny

    (Using md5() ... )

    f828955ca01f9c03a726acf5cc2dbe65 a2a551a6458a8de22446cc76d639a9e9 f97c5d29941bfb1b2fdab0874906ab82 8bf8854bebe108183caeb845c7676ae4 8fc42c6ddf9966db3b09e84365034357 ff5cabab0a5c826fdef2e562e6eb600a 79a352706fc69e70b68a457015ccaf0f d31ed91ae4198835d730482e66e6f58a d529e941509eb9e9b9cfaeae1fe7ca23 8134b84030cca5285ed0e0b31ba06f10 ed2b5c0139cec8ad2873829dc1117d50 d581a916de79aa75cc53096b385c9751 37598dad8f8805ce708ba8c4f67ce367 07ccfe360dce69b84595428e2ec1c1cc ed2b5c0139cec8ad2873829dc1117d50 5452e83a743c0fccd85d322daf053e43 6e57d6c47d23024e41f4a1aac73a3ea9 a77b3598941cb803eac0fcdafe44fac9 f970e2767d0cfe75876ea857f92e319b 6f96cfdfe5ccc627cadf24b41725caa4 9e327d39a0b27bf040f1693e140f3a35 c376109ef8d15c46a24936b7d0e0b560 b971be0e2e7176b90d5501eca32a0226 8fc42c6ddf9966db3b09e84365034357 e91e6348157868de9dd8b25c81aebfb9 8bf8854bebe108183caeb845c7676ae4 52e5783fb2be233a7219dabe6d7f8056 b31df235e8aee38fd08600c353af2b52 21582c6c30be1217322cdb9aebaf4a59 6f96cfdfe5ccc627cadf24b41725caa4 c6e76a72f258857bed843acfbd216ae5 21582c6c30be1217322cdb9aebaf4a59 cc935c5faf4c8f7a0468d7552a9b8138 23f9c1b08ef269ebf4b403ed833a5b03 336d5ebc5436534e61d16e63ddfca327 a2d4bfc626b142774660d5deb9a7f0a7 7d0db380a5b95a8ba1da0bca241abda1 8451fc653eaa269664a6d9b46a238424 336d5ebc5436534e61d16e63ddfca327 e0d00b9f337d357c6faa2f8ceae4a60d f0441366488bd123be0e5fb7d6c03c2b 910955a907e739b81ec8855763108a29 4ab8710d781ba5b13aaf561cafd896b7 ca97d7fcd88d424065b3fb8b1b63495b 6dbdba779ddf6dd053c3785e6bd9d035 9e925e9341b490bfd3b4c4ca3b0c1ef2 a77b3598941cb803eac0fcdafe44fac9 f97c5d29941bfb1b2fdab0874906ab82 8bf8854bebe108183caeb845c7676ae4 8fc42c6ddf9966db3b09e84365034357 addec426932e71323700afa1911f8f1c f3e9e0675feca77f67a7e32898b75dc2 8d8a1b73876ca678cc3afa372e5199de 13b5bfe96f3e2fe411c9f66f4a582adf 8fc42c6ddf9966db3b09e84365034357 e91e6348157868de9dd8b25c81aebfb9 9176a98110716496410503c80b9d1af5 39e61d57e9209611edd4f884e9e47c11 9e925e9341b490bfd3b4c4ca3b0c1ef2 e23ee923e08a2bceae9b0e0d2d3eba80 65b50b04a6af50bb2f174db30a8c6dad ff0cb426c0698739bc5e410313a00f7e 2c843f3bf026929da412897f5c9e7b8e 41a23ff0e62bc39c571d717b71cc6d54 53d8f4d1e2b5be0d0abfde443f017359 f970e2767d0cfe75876ea857f92e319b 0cc175b9c0f1b6a831c399e269772661 6ce207e8f7bc1afc40ba5e1d8a181478 e91e6348157868de9dd8b25c81aebfb9 ff0cb426c0698739bc5e410313a00f7e 7c67f7869117923c58b29eee5f760c5f 7761127a460aaf290ed953098284dd1a 791b0c20a65a95dc903f4928be58156c 01b6e20344b68835c5ed1ddedf20d531 1818d506396d77b3d035f719885c4cd1 26eb20e01947f0cc7bbc2cdb458a499b ed2b5c0139cec8ad2873829dc1117d50 c48d7856c321faa3bf30956cfff0217a 77631ca4f0e08419b70726a447333ab6 1e3057527650f36abc8cfa0131920cda a77b3598941cb803eac0fcdafe44fac9 07ccfe360dce69b84595428e2ec1c1cc 17b9b0dd34a74166f3b3c4b11fc1bd8e 13b5bfe96f3e2fe411c9f66f4a582adf 65b50b04a6af50bb2f174db30a8c6dad e16704d9e243b23b4f4e557748d6eef6 8bf8854bebe108183caeb845c7676ae4 ffb85bfe93f1d2f1654a7048b87f0403 be5d5d37542d75f93a87094459f76678 b8b1ddae9aafe82ed29b973cf9f0b031 4a9e308719d8ca12ef4532207f77a801 8b7af514f25f1f9456dcd10d2337f753 a2a551a6458a8de22446cc76d639a9e9 f016441d00c16c9b912d05e9d81d894d 29e4b66fa8076de4d7a26c727b8dbdfa 13b5bfe96f3e2fe411c9f66f4a582adf f303f9a15cddbe8ee0296511a8b04b30 be5d5d37542d75f93a87094459f76678 1818d506396d77b3d035f719885c4cd1 d98a07f84921b24ee30f86fd8cd85c3c 733d43480c8589b1368e5def6b480415 64ef07ce3e4b420c334227eecb3b3f4c 34207c34eb6aad72ecc67c7d0f2ff324 e2e0ab9c9510bf61fd17296bae8d3d24 567904efe9e64d9faf3e41ef402cb568 5440e70c43cc02aba90d879c888e6e09 bba95533b6f582e295b52fffd93cbb7c 64ef07ce3e4b420c334227eecb3b3f4c aef17870e6a01b4873b45c988b05243f 1977c9daa1d67de51a4651abdb160c09 b208dbc3701c54737a24ac451d75b324 be5d5d37542d75f93a87094459f76678 4a2028eceac5e1f4d252ea13c71ecec6 5440e70c43cc02aba90d879c888e6e09 0d149b90e7394297301c90191ae775f0 aaffefb077c8b53e5895bc6a47b4c2c4 39e61d57e9209611edd4f884e9e47c11 f51712e8f064b4d2080adbe9721c69ed 8fc42c6ddf9966db3b09e84365034357 a363b8d13575101a0226e8d0d054f2e7 a2a551a6458a8de22446cc76d639a9e9 21582c6c30be1217322cdb9aebaf4a59 0d149b90e7394297301c901

    1. Re:Book Review, Reprint by Anonymous Coward · · Score: 0

      How could you mod this down as Troll?! This is freakin hilarious! I guess one man's humor is another man's troll... :\

  29. My new fangled encryption scheme by Anonymous Coward · · Score: 0

    OK. Here is a challange.

    My crypto algorithm is to take an arbitary irrational number(t), and a large number(z) as a secure key(this is symmetrical encryption, not public key). Then use the decimal expansion of t starting at position z as a one time pad for your message(M).

    To decrypt the result(R) to retriev M, you need to know the key (t,z). eg. (t,z) might be (sqrt(2),1127304).

    Anyone care to crack my encryption scheme?

    Bonus points for readers if some people post messages encrypted with this scheme, with the key kept secret. And then see if anyone can break the encryption scheme and reveal the message M (without knowing the key).

    My understanding is that this is possible, but I am only half convinced. Someone prove it for me.

    Thanks.

    1. Re:My new fangled encryption scheme by barfy · · Score: 2, Interesting

      With at least your sample key, it is very easy to brute force this, I only have to try slightly over 1 million keys.

      There are two problems with this, first is the relatively small number of Irrational numbers that are likely to be used (unless there is a large and easy to mine font of these I am not aware of).

      The source of security of most encryption systems is that the "random streams" created by the initial key are extraordinarially large.

      Changing the starting point in 1 given or even a handful of given streams, leaves you open to a simple sliding window against a previously stored length of strings.

      It would become every more problematic the bigger the number Z (yours example would be trivially easy).

      With a LARGE z it would take your encryption program a long time to get there (Except for PI), and the decryptor would also have a long time to get to the starting position.

      Most professional decryptors are going to have most of the stream prestored, unless z is REALLY BIG).

      I suspect that you can use really large Z numbers with t = PI and it would take a long time to brute force your answer. (This would be from the algorithm that lets you calculate any given position of PI).

  30. speaking of experts by Anonymous Coward · · Score: 2, Insightful

    Has Slashdot considered adding a little about the credentials of book reviewers, especially on more technical topics?

    I am not in any way passing judgement on "jpetts" here. He, or she, is quite articulate, but could be anywhere from an expert with years of experience to someone who's "read a book or two" and talks a very good game.

    Generally I try to assess a writer by coherence and consistency when I don't know the subject material myself. But that only gets one so far - and I usually spot some discrepancies when I do know the subject material.

    So the rough outlines of the writer's experience would add (or subtract, as the case may be) a little confidence in their accuracy.

  31. Since everyone is posting their favorite books... by c64cryptoboy · · Score: 4, Interesting

    Check out reviews of LOTS of cryptography books here -- most with an associated set of prerequisite book reading, math, and computer language skills.

    --
    I put the 'fun' in fundamentalism
  32. another book on cryptology by roalt · · Score: 3, Interesting
    One of the best (and accessible) books I've read about cryptology (from hieroglyphs to quantum computing) is The Code Book by Simon Singh

    It's fun reading!

    1. Re:another book on cryptology by Anonymous Coward · · Score: 0

      I concur with the parent. "The Code Book" is a great starting point for anyone looking for a non-technical survey of crytography. It covers different ciphers starting with the Caeser shift all the way to quantum crytography. The book provides a historical background about why the particular cipher was made, how it was used, and how it was broken then explaining how the cipher works and how to break it in lucid detail.

  33. You call yourself an expert? by Anonymous Coward · · Score: 3, Funny

    I think it needs to be applied 13 times before the data is sufficiently encrypted.

    Applying it 26 times has to be twice as good. Has to be!

  34. I'm weak in cryptography by Anonymous Coward · · Score: 0

    but it sounds to me like you're proposing OTP with a weird way of generating the pad. So instead of saying t and z are needed to decrypt the message, I believe it would be fine to say that the pad is needed to decrypt the message. Well, yeah -- it's OTP so you need the pad. t and z are just a handy way of generating the pad any time you want it. You could just as easily use pi or e or whatever. I'm not certain, but I believe the pad should be derived from a source we consider to be truly random, not some function.

  35. Re:svefg cbfg by Anonymous Coward · · Score: 0

    Ohg vg jnfa'g, jnf vg? Vg jnfa'g rira arneyl SC fgnghf. V zrna, sre pelvat bhg ybhq...

  36. Better choices for t. by Anonymous Coward · · Score: 0

    I chose a very poor example of t. In practise, t can cover a huge range of numbers. There is no shortage of methods of producing irrational numbers from rational numbers. eg e^a, sin(a), tan(a), sqrt(a), cubert(a) etc. With a being things like 1012758, or 2.3145753 or whatever.

    I am probably wrong, but it feels like there would be too many t's and z's to chose from for it to be brute forceable. But another part of my intuition says I know jack shit about encryption and am 99.999% sure my method is easily breakable.

    1. Re:Better choices for t. by Michael+Dorfman · · Score: 2, Informative

      Yeah, it is easily breakable, in the sense that it is open to the same type of problems that beset one-time pads-- secure communication of the key.

      The fact that there are many t's and z's to choose from doesn't change the fact that you still need a secure channel to transmit t and z from Alice to Bob. And if you have that secure channel, what's the point of the encryption? Why not just pass the plaintext over the secure channel?

    2. Re:Better choices for t. by Anonymous Coward · · Score: 0

      look up "analyticity" "continued fractions" and "rational approximation"... your schemes are trivially crackable if the function you use is remotely algebraic or weekly transcendental

  37. Re: Quantum Computers will NOT make crypto obsolet by plcurechax · · Score: 1

    Depends on if Quantum Computers become practical in that timeframe. If they do, RSA (and a lot of other crypto algorithms) become useless.

    Um, no.

    From the Crypto Mini-FAQ:

    Q: Will quantum computers make all this crypto obsolete?

    Not in our lifetimes. Quantum cryptography along a single fiber optic
    strand has been demonstrated, and claims to offer provable security
    in a certain narrow academic sense, like the one-time pad. But to be
    practical, it has to be combined with conventional cryptography, in
    which case the quantum operations do not add much.

    Quantum computers threaten the future of RSA in about the same way
    that cold fusion threatens to solve the world's energy problems. It
    would require huge theoretical and practical breakthroughs. Even if
    that happens, people could just shift to AES-256 and other algorithms.
    In the meantime, Moore's Law is a bigger threat to RSA.

  38. Timing of the message by Anonymous Coward · · Score: 0

    "And if you have that secure channel, what's the point of the encryption? Why not just pass the plaintext over the secure channel?"

    One example. You have a limited time frame in which you can exchange data over a secure channel (eg while you are in your home country). The OTP allows you to effectively extend the timeframe in which you can transmit securely.

  39. about the book by schneier by andy666 · · Score: 1

    this book is an ok reference, but not on the actual algorithms. it is more about implementation, and is not too mathematical, which is why people like it.

  40. For extra security... by Boss,+Pointy+Haired · · Score: 1

    Don't forget Double-ROT13

  41. Handbook on Applied Cryptography by Anonymous Coward · · Score: 0

    Is "Applied Cryptography" the same book as the "Handbook on Applied Cryptography" that was posted on /. a couple of months ago. I am on chapter 5 of online version, and would hate to start all over again with this "Hands-on hands-down AC".

    What I mean is this: is the post a dupe?

    1. Re:Handbook on Applied Cryptography by jpetts · · Score: 1

      Is "Applied Cryptography" the same book as the "Handbook on Applied Cryptography" that was posted on /. a couple of months ago. I am on chapter 5 of online version, and would hate to start all over again with this "Hands-on hands-down AC"

      No. The former is by Schneier, the latter by Menezes et al., and is somewhat more mathematical. Both are very good, but unless you have good maths, the former is more accessible, and not so much hard work. Conversely, if you can handle the latter, the maths in the former are easy. Schneier's book is more chatty in style, though, and has more general material accompanying the specific crypto stuff.

      --
      Call me old fashioned, but I like a dump to be as memorable as it is devastating - Bender
  42. did you know this? by theblacksun · · Score: 1

    I believe it was Himler (probably a misspelling), but it was definately a high ranker in the Third Reich who said you can convince people anything with the word Patriot. This wave of nationalism is a very scary thing when you think about it from that view. Many people think we shouldn't question our president; Hitler's word was law. These are disconcerting parallels and I'm not saying I think Bush is the next Hitler, I'm just saying the nation is ripe for a police state and it's better to watch for such thing. Keep in mind no one believed the holocaust could happen before it did.

    --
    Ignorance kills, complacency kills, hatred kills, but usually not the ones guilty of them.
  43. A review on crypto or error correcting protocols? by Brock+Lee · · Score: 1
    I guess when you're such a rabid fan, finding enough complements to pack into your review can be quite a challenge. As a result, one should expect the redundancies.

    "Invaluable" appears once in the summary and three more times in the review.

    And not only do we discover that "[t]he book pulls no punches", we later learn that "Ferguson and Schneier are refreshingly frank, too."

    I would hope that a book outstrips the value of those which cost half the price or less, so is this really a complement?
    Some might complain that it is priced too high (it lists at USD50 for the softcover, and USD70 for the hardcover), but it is printed on acid-free paper, and the density of useful advice is such that it outstrips in value many works which cost half the price or less.
  44. Obvious code O(n^2) -- FFT is O(log(n)^2) by lukme · · Score: 1

    May I suggest that you consider implementing your own.

    The trivial way to implement the multiplcation of 2 numbers within a BN library takes O(n^2) as compared with the FFT which I believe is O(log(n)^2).

    Now, the constant factor in the complexity of FFT is rather large as it requires a bit of work to set up. So if you are multipling numbers with a few digits, it would be faster to use the O(n^2), however, if you are doing really large number work go with the FFT algo.

    1. Re:Obvious code O(n^2) -- FFT is O(log(n)^2) by cpeikert · · Score: 1

      FFT is O(n log n), not O((log n)^2). There's a big difference.

      Naive bignum multiplication would be O(n^2), which is a good bit slower than O(n log n).

  45. Re: Quantum Computers will NOT make crypto obsolet by hardburn · · Score: 1

    You will note that I said "become practical within that timeframe" and "if they do, then . . ". I'm well aware of the breakthroughs required to make that happen.

    --
    Not a typewriter
  46. bad example. by lukme · · Score: 1

    One example. You have a limited time frame in which you can exchange data over a secure channel (eg while you are in your home country). The OTP allows you to effectively extend the timeframe in which you can transmit securely

    Your example doesn't make sence. If you use a one-time-pad, you've only doubled the time frame (if you've recieved the OTP in the secure channel). It would make more sence to transmit a symetric key during the secure channel, and then use it to extend the time frame.

    As far as you crypto system goes, you must ensure that 2 of your messages don't have overlapping sections of your generated numbers (ie you use your pad twice). If that happens, then it opens you up to the point that oscar only needs to do some simple statistical work, maybe even by hand (think venona).

  47. Fortuna ...? by karlm · · Score: 1
    So is his much-hyped much-secret Fortuna pseudorandom number generator just another Yarrow implementation, an evolutionary step beyond Yarrow-160? He seems to not have any specs online...

    From the table of contents of the book, it looks like it could be just another member of the Yarrow family.

    --
    Copyright Violation:"theft, piracy"::Anti-Trust Violation:"thermonuclear price terrorism"<-Overly dramatic language.
  48. Good discussions - lacking depth by seaan · · Score: 3, Informative

    I've read about 1/3 of the book, and based upon that feel the book is worth recommending. Aside from the good points I'll mention below, my biggest problem with the book is lack of depth. I've been doing applied cryptography for over 15 years now, so I'm probably not the typical reader (I'm not a cryptographer in the formal sense, but I design protocols and use cryptographic constructs on a regular basis).

    The writing is clear and does a good job of presenting information, and doing that well for a dense subject like cryptography should not be underestimated. The book is strongly opinionated, and I think that is a strength since the authors try [and for the most part succeed] in explaining how those opinions were formed. The topics are fairly comprehensive, and the material seems to be well organized (from what I've read so far).

    For the knowledgeable, it is a bit disappointing. I did not expect to learn tons of new stuff, but was still disappointed at the depth. In many ways, the book was only a half-notch deeper than reading Schneier's Cryptogram essays, where perhaps I was hoping for something more like his papers. The good use of footnotes and references helps offset things a little.

    There were clearly areas where the authors were more interested in than others, often corresponding to previous work (CTR block-cipher mode, PRNG). Other areas were less inspired, for example in the MAC (message-authentication-code) chapter they offer the advice "Do not output any of the intermediate values." This sounds good at first glance, but it totally impractical except under special circumstances (if the MAC routine allows variable length messages, and almost all do, intermediate values can be calculated by simply feeding the parts of the message into the routine - thus this advice has no real world value).

    Another nitpick, is that I would have liked to see the various "rules" and advice formulated into check lists. That would have made the book much more valuable for crypto system designers, be they novice or expert.

    On the balance, I feel that the book is worthwhile to anyone interested in the subject of cryptography, or who has to use [or design, test] a system that has cryptography. It won't make you an expert (funny how some people still think reading a book could do this), but at least it raises an awareness of the types of problems that derail cryptographic systems designs. It is easy to read and informative.

  49. md5 produces a 128 bit message digest by Anonymous Coward · · Score: 0

    Your joke is therefore lame. QED.

  50. You got the author's name wrong ... by NisJ�rgensen · · Score: 1

    It is Niels Ferguson, not Neils

  51. Crypto/Schmypto by F4Codec · · Score: 1

    if only the computer industry would adopt my schemefor data encoding, all this crypto stuff would become irrelevant.

  52. thanks for correcting me. by lukme · · Score: 1

    I had missremembered the FFT complexity. I should have remembered that it is the same as sorting.

    Your point is why I had included the complexity.