Slashdot Mirror


User: NearO

NearO's activity in the archive.

Stories
0
Comments
17
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 17

  1. Expected code samples not cats and dogs on Tim Cook: Coding Languages Were 'Too Geeky' For Students Until We Invented Swift (thestar.com) · · Score: 1

    I forgot to look at the destination URL of the "as easy to learn as our products are to use" link and opened it in a background tab, expecting it to lead to a page with some code samples. A bit later I was very confused where the tab with a video of a cat mauling a tablet came from.

    What's the point of that link?

  2. Re:Not all web apps work with just HTML and CSS on A Surge of Sites and Apps Are Exhausting Your CPU To Mine Cryptocurrency (arstechnica.com) · · Score: 1

    As I said, obviously not everything is possible without JS, but that is not the point. The point is that JS is used without good reason on the majority of websites requiring it.

    That aside, you could draw lines and other shapes. It's not big deal, just really clumsy. The first click marks one corner of the shape to draw and puts a marker on the image, the second click sets the other corner and draws the shape. You can draw lines, boxes, whatever. You just won't see your shape until the second click.

  3. Re:Not all web apps work with just HTML and CSS on A Surge of Sites and Apps Are Exhausting Your CPU To Mine Cryptocurrency (arstechnica.com) · · Score: 1

    In my days we did this with a frameset. The big upper frame hat a meta refreshing chat buffer or nph. At the bottom was a second frame with the input bar. To the right you had a third frame, also meta refreshing, with the user list. Easy as pie. Just a bit laggy, but if you don't like it, use a proper IRC client.

    That aside, this is disingenuous. This kind of active application is not "most websites". Try browsing the web JS disabled. Loads of websites look completely broken for no good reason. They shouldn't need drag and drop or content push or whatever just to display some pictures, a logo and a bit of text. Adding JS requirements to that kind of site only makes the world a worse place.

    It would be nice if we could go back to the days of graceful degradation, so I can keep JS permanently turned off for most sites.

  4. Re:VP9 is a video coding format, not a codec on Microsoft Announces VP9 Support For Edge · · Score: 1

    Oh, I found a draft. It's still just a "bitstream overview", but it's something.

  5. Re:VP9 is a video coding format, not a codec on Microsoft Announces VP9 Support For Edge · · Score: 1

    That kind of implies that there are specs available for VP9 that I could go and implement independently from the original implementation. However at the WebM website, I can only find a "bitstream guide" for VP8.

    Since you made that claim, I am sure you will be able to point me at the specs or at least a "bitstream guide" for VP9?

  6. Re:There are only two types of security... on Book Review: Security Without Obscurity · · Score: 1

    A quick note to your argument about how with regular encryption you know when you have found the right key because regularities will appear: You can easily circumvent this*, by encrypting the data multiple times with different keys and possibly with different algorithms.

    That's how you know the security is solid.

    Or that there is nothing there that can be broken...

    Imagine for example if I write in chinese and you had no reference for chinese. You do not know how to read it and you don't know of any similar languages to aid in your decoding of the chinese.

    First something general about using human languages for the purpose of security.
    1) If you invent a language, your vocabulary and grammar will basically be the key. Admittedly, it will probably be a pretty big key, but partial knowledge of the key will likely allow partial deciphering of the messages in that language.
    2) Inventing languages for the purpose of security is not a well studied field. If you do it ad-hoc, you are unlikely to get a great result.
    3) In general, when using human languages, similar messages will look similar. As information rarely exists in a vacuum (the Voynich manuscript pretty much does, yes), this may allow an attacker to make inferences about your messages.

    To use your example of Chinese, consider the following scenario. You are using Chinese to communicate with a friend. In this world, Chinese is a language known only to you and your friend. I am a well funded adversary and capable of observing your general daily behaviour in a way that only requires communication meta-data and a guy who watches your house and one who watches the house of your friend.

    On day 1:
    You send your friend a message: æ'äçç¦ä½æ"ääç"èã
    I observe:
    - You clean the windows.
    - You go buy things from the grocery store.
    - You give your friend a phone call.
    - You take a walk.
    - Your friend goes buy things from the supermarket.
    - Your friend receives a phone call from you.

    On day 2:
    You send your friend a message: æ'äfçäåååZçoeæ'æoeåäã
    I observe:
    - You take a walk.
    - You chat with a neighbour.
    - You call your mother on the phone.
    - You go visit somebody.
    - Your friend receives a phone call from somebody.
    - Your friend goes eat at a restaurant.

    On day 3:
    You send your friend a message: æ'æoeåç¦ä½æ"ääç"èã
    I observe:
    - You buy things from the grocery store.
    - You take a bath.
    - You take an evening walk.
    - Your friend receives a phone call from the person you visited the day before.
    - Your friend goes swimming.

    (Please go here for a copy where /. hasn't messed up the Chinese characters.)

    By now, I will be able to make some guesses about the meaning of various parts of the Chinese language. If you communicate more, I will be able to refine those guesses. I suggest you mull over it a bit and see if you can come up with a few hypothesis yourself. And yes, it's proper Chinese.

    You're ignoring my point which is that the cryptography is theoretically breakable. Where as the things I'm talking about are not.

    I am not ignoring that. I merely hold the opinion that the difference in practical security is negligible. To reiterate the pros and cons of using OTPs instead of regular, modern cryptography:
    + Properly used, OTPs can be perfectly secure.
    o This means, if you compare the security of an OTP with that of a conservatively designed cipher using 128bit keys, you have reduced the probability that your cryptography will be broken by a bit less than 0.00000000000000000000000000000000000001%.
    o Using an OTP does not defend against attacks that circumvent the crypto

  7. Re:There are only two types of security... on Book Review: Security Without Obscurity · · Score: 1

    Somehow I expected that the Voynich manuscript would come up. It's not a very good argument though. We don't know if the contents of that thing are even supposed to make sense. You can't decrypt /dev/random. In general, where you have data, you have context. That context helps deciphering the data, unless care is taken to make that impossible. And with "care is taken" I mean "cryptography is applied". If you make up a new language, it probably won't be a cipher that is better than encoding that information in an efficient way and running it through a cryptographic cipher.

    Well. You could encrypt something and then map that back into a grammar and speakable words, but that's cheating.

    That is why I threw out book codes or one time pad codes as an example. They're unbreakable without the pad. As in NEVER.

    You also ignored all the issues those have and which I mentioned.

    Today's symmetric ciphers commonly have key lengths of 128bit or 256bit and usually there aren't even purely theoretical attacks that are significantly faster than brute-force. If you have a cipher with very conservative safety margins, such as ChaCha20, and a key length of 256bit that is pretty much unbreakable without the key too.

    For comparison, the estimated total number of fundamental particles in the observable universe is somewhere in the range of 2^265 to 2^282. Maybe you would be satisfied 384bit keys? "2^100 times more states to check than there are particles in the universe" has a nice ring to it.

    but that's just because that's the weakest link. You don't waste your time with the tough stuff if you can find something softer.

    No, that's because modern cryptography is so strong that trying to break it is pretty much futile. If the cryptography was a viable target, it would be targeted, because then you could break all the implementations at once.

    Added to what I said above, I think systems that are secure must be simple. Very simple. As in no more then a couple pages of code. Why? Because complicated code is code that can't be debugged. Keep it simple and you can make the code perfect. Total confidence that there is zero error. As in 1+1=2 perfect.

    Simplicity is good, I agree. However, many actual cryptographic algorithms are rather compact. AES is just a few pages of code. So is ChaCha20.

    As I said before. The cryptography is not the problem. Usually it's not even the code for the cryptography. Granted, there have been some cases of sidechannel attacks, but those can be (mostly) avoided with proper care.

    A perfect OTP implementation won't help you if your application is leaking random memory blocks (including your OTP) to an attacker heartbleed-style.

    The sort of thing you'd trust to keep out the literal devil.

    The devil applies "simmer in a pot full of literal liquid hell fire" cryptanalysis, I believe. Apart from that, 256 bits of security should be enough against that guy.

  8. Re:There are only two types of security... on Book Review: Security Without Obscurity · · Score: 1

    I'm not trying to be offensive here, but I assume that you do not know too much about modern cryptography. Correctly applied, it is secure. Really secure. Successful attacks target the system that uses the cryptography, not the cryptography itself. Random number generators are a nice target. Systems running vulnerable software are nice targets. Targeting modern cryptography itself is usually a futile endeavour.

    Languages can be learned. It may take a bunch of linguists a couple of years to get somewhere if the language is odd enough, but it is doable.

    Proprietary, undocumented protocols and file formats exist. People who reverse engineer them and write their own compatible implementations also exist. I have done that kind of thing a few times myself.

    Proprietary protocols and the like are basically what is commonly referred to as security through obscurity. This is considered a bad thing.

    On the other hand, we have modern cryptography. Properly implemented, that stuff is incredibly secure. Even if you have a bunch of linguists or mathematicians, they won't break it in a few years or even a few hundred years, likely. The situation is not really comparable to WW2 era ciphers at all. We have left those far behind.

    Sure, it is possible but we will have some incredible, mathematical breakthrough with regards to integer factorization, but it doesn't seem likely to happen suddenly. Usually, the state of the art advances at a slower pace. Even quantum computers will still leave us with working symmetric cryptography and (somewhat more unwieldy and less studied) asymmetric cryptography intact.

    One time pads are commonly cited as the holy grail, but they miss the point and are difficult to employ, even today. Cryptographic systems are not broken by attacking the cryptography. They are broken by circumventing it. To use a one time pad, you first have to generate it. For that you need a true RNG, or it will be no better than a regular stream cipher. If your randomness is bad, you will be vulnerable and there exist interesting attacks that could subvert commonly deployed sources of entropy, such as Intel's RdRand instruction.

    The second problem is exchanging the one time pad securely. How are you going to do that? Snail mail? It could get intercepted. Besides, if you have a way to securely share a secret with the person you are communicating with, you could just share a 256bit ChaCha20 or AES key and be done with it. The practical gain in security a one time pad would provide over those would be negligible.

    It would only be breached if the enemy got access to the machine used to send the messages. And nothing is going to survive that.

    There is a nice property good, modern cryptographic systems provide, which is called "perfect forward secrecy". It guarantees that communications that took place before an attacker gained access to the secret keys of a peer will still remain secure after the fact. I suppose you could achieve something similar by securely zeroing out the used parts of your one time pad, but then you get into the messy affair of how to securely delete data.

  9. DES claim not commonly claimed on Book Review: Security Without Obscurity · · Score: 2

    An interesting observation the book makes when discussing the DES encryption algorithm, is that all of the talk of the NSA placing backdoors in it are essentially false. To date, no known flaws have been found against DES, and that after being around for over 30 years, the only attack against DES is an exhaustive key attack. This type of attack is where an adversary has to try each of the possible 72 quadrillion key (256permutations â" as the key is 56 bits long) until the right key is discovered.

    This is an odd thing to say. It almost sounds like an attempt at whitewashing the current Dual EC DRBG business by debunking a not commonly made claim about another cryptographic algorithm with a vaguely similar name.

    It is widely known and accepted that the NSA strengthened DES against differential cryptanalysis, while also ensuring that the key length is short. They both strengthened and weakened it in different way. There also are attacks against DES, which are, in theory, faster than brute force.

    Giving the number of tries necessary to brute force a 56bit key is also kind of odd, since that is a key size that can actually be broken these days without too much effort. What's the point in trying to wow the audience with big numbers in that case? Seems misleading to me. Granted, that may have been just the reviewer and not be part of the actual book.

  10. Re:Already done in a better way? on The Survival Machine Farm · · Score: 1

    It's the same project.

  11. Re:But can it make decent MP4 containers yet? on FFmpeg 1.0 MultiMedia Library Released · · Score: 1

    That's actually mencoder's fault. It has problems muxing to basically anything but AVI. If you use ffmpeg directly, you can make MP4 files just fine. For mencoder, it's unlikely that the situation will change, as it is basically no longer maintained.

  12. Re:they should learn from Apple on Nintendo 3DS XL Is Out Now · · Score: 1

    Nintendo is doomed if it continues to price its games in the traditional sense.

    Nintendo has been doomed for a long while, you know. ;)

  13. Re:I'm Rather Confused on Review: Theatrhythm Final Fantasy Is Game Music Nostalgia At Its Best · · Score: 1

    So why are game publishers going 3DS for the sake of 3D? That just feels so gimmicky to me. Especially when they can access other systems (like all of them) that do not use 3D technology if they make a non-3D version of the same game or just go non-3D natively. I really do not understand.

    There's a very simple reason: It's a completely different system.

    The 3DS has much more RAM (128MB vs 16MB, that's more than the Wii), a much better CPU and a much better GPU with actual fancy shaders and stuff. The old DSi can't even hope to compare. It's much more than a "DS with a 3D screen".

    You could say that the DS/DSi can be compared to the N64, while the 3DS is more like a Gamecube. Just take a look at some Resident Evil: Revelations footage. There's no way you could do that on a DS.

  14. Re:Just use WebM for the web on Royalty-Free MPEG Video Proposals Announced · · Score: 1

    x264 has a variety of settings that allow you to tweak the quality/speed ratio. It also has (and is getting more) ARM assembly optimizations, which should be useful for use on a number of phones. It's a really well optimized piece of software over a number of platforms.

  15. Less than PAL on Goodbye, HD Component Video · · Score: 1

    540p is less vertical resolution than PAL, which is 576p.

  16. Re:GPU for video encoding on Microsoft Patents GPU-Accelerated Video Encoding · · Score: 1

    x264 does not use the GPU, the program just does not support it. I know that ATI once produced an Avivo H.264 encoder, but that one was of highly questionable quality. Of course, these days they might have made a better one. Have you tried comparing the speed and resulting video to x264 on veryfast or ultrafast presets?

  17. GPU for video encoding on Microsoft Patents GPU-Accelerated Video Encoding · · Score: 1

    This might not matter too much. Using the GPU to assist in video encoding might be less of a good idea than many people think. Many complex procedures during encoding are not all that suited for parallelization. Take entropy coding for example. You probably have most of a chance for doing anything useful with motion estimation, but that's still quite hard. A bunch of people have worked on adding GPU acceleration to x264, as part of their thesis. There wasn't any real success. Most of them failed to make it actually useful, since cache considerations and the like prevented them from using nicer algorithms than exhaustive search.

    As for existing encoders, like Badaboom, they mostly aren't all that fast or good. You can probably beat them with x264 on fast settings and still get similar or even better quality.