Our Blog and Vlog, the latest happenings in multimedia...

Fast Websites That Are Easy To Run and Manage


Get your fast website with a totally cool management system that's loaded with features here...

We've Got All The Top-Shelf Features Already Baked-In


Like free stuff that rocks? Install the hottest web apps in 1-click automagically from a growing 250+ selection...

We Do Web 2.0, 3.0 or Whatever The Latest *.0 Might Be


Deep knowledgebase and resources, video tuts, killer tricks-tips, sweet themes, plus much more...

Adobe Cloud Gets Creative, Brings PrimeTime with it

Adobe Cloud Gets Creative, Brings PrimeTime with it

I’m tracking several things coming from Adobe presently. The first is the announcement that the Adobe Creative Cloud is now live meaning you can pay a monthly fee for access to their Creative Suite 6 series of applications. Along with that there are also two new Touch Apps, but those are sold separately. The other thing I’m tracking and will have more on, probably next week, is Adobe’s “Project PrimeTime, the first fully integrated video technology platform to enable seamless viewing experiences for ad-supported TV content across desktops, TVs, smartphones and tablets including iPad, iPhone and Android devices.”

This is PrimeTime Baby!

While I haven’t got much on Project PrimeTime upcoming announcement right now, I do have some previously released information that might pique your interest.

From an earlier release:

This new platform delivers premium video and ad content consistently across all major platforms, including Apple iOS, Google Android, desktop operating systems and connected TVs. Shown for the first time at these two major industry events, elements of Primetime will be available throughout 2012.

Essentially it looks that the offering is attempting to be the one-stop shop if you will for online video. It’s set to include things like streaming technologies, content protection, analytics and optimization and monetization. Over time it should work for linear, live and on-demand video. I’m quite excited to get some more info on it.

Creating Content out of Clouds

Many of us have laid on our backs in the grass and watched as clouds have scudded past often saying things like “Look, it’s Snoopy!” or “OMG a skull!”

That has nothing to do with this, well, no…even I can’t stretch reality that much. Adobe’s Creative Cloud is basically a monthly subscription, if I’m reading correctly, for access to the entire Creative Suite 6 set of applications including; Photoshop, InDesign, Illustrator, Dreamweaver, Adobe Premiere Pro, After Effects, Flash Professional, Muse and Edge Preview.

It comes in at $49.99 a month, billed yearly and $74.99 per single month. If you’ve got anywhere from CS3 to CS5.5 you can get a special intro price of $29.99 (again probably a year up front).

It’s an expensive proposition that. $480 for a year of access to a cloud-based installation for the apps?

On the other hand, there are a couple other things that come with the subscription like cloud-based storage and sharing of content, integrated website publishing and hosting and “ongoing innovation” which sounds like software patches and updates.

I don’t know any person that uses all of those applications listed. People, generally being specialized into a specific type of work, are usually using a small subset. The pricing seems like it’s designed to replicate the cost of a single application. Again, the reason why I don’t use multiple Adobe applications or update regularly, I think I’m still paying off my Adobe Photoshop CS3 on the credit card.

Simultaneously, but sold separately is the announcement that the Adobe Touch Apps, Proto and Collage, are out now on iOS and new features for Touch and Ideas. They’re all available on the iTunes App Store and Google Play for $9.99 each. Signing up for an annual Creative Cloud membership can get you a deal on the Touch Apps it seems.


Tags: - - - - - - - - - - - -
Read More...

Steve Jobs Dreamed of Developing an iCar

Steve Jobs at the 2010 iPad event in San Francisco. Photo: Jon Snyder/Wired

J.Crew CEO and Apple board member Mickey Drexler revealed some never-before-heard insights into Steve Jobs’ plans and goals at Fast Company‘s Innovation Uncensored conference last month. Apparently, Jobs had dreamed of one day taking Apple onto our public roadways with a sleek, well-designed car.

“Look at the car industry; it’s a tragedy in America. Who is designing the cars?” Drexler said. “Steve’s dream before he died was to design an iCar.”

What an Apple car would look like, we’ll never know. Drexler said Jobs never ended up designing the dream vehicle. Apple’s CEO did help design a few other vehicles, though, including a luxury superyacht and a private jet (not to mention having a hand in iconic Apple products like the iMac, iPhone and iPad).

Drexler also made a statement that could potentially corroborate the seemingly endless supply of Apple television rumors: “The living room they’re dealing with at some point in the near future.”

Of course, Apple’s already got a living room presence with its Apple TV set-top box, so Drexler’s ambiguous statement could reference that — or just about anything else.

Watch excerpts from Drexler’s conference appearance below.

Tags: - - - - - - - - - - - -
Read More...

Google Patent Suggests New Direction For Project Glass Augmented Reality Interface

The augmented reality power ring. Illustration: USPTO

Head-mounted wearable computers present a bit of an interface problem. Voice-based head-mounted systems impart the impression that a person is murmuring to him or herself, and accelerometer-based systems that rely on head movement make users look like they have a nervous tic.

One solution to the head-mounted-computer user interface conundrum involves hand gestures. Enter a new Google patent that seems to be the search giant’s answer to controlling its Project Glass augmented reality system. Titled, “wearable marker for passive interaction,” the patented system, which just went public Tuesday, would use a reflective infrared identifier placed on a user’s hand to track and identify the user’s gestures.

The IR identifier would be invisible to the human eye and could be placed on a ring or glove, or even affixed to a fingernail. (Whether the fingernail identifier would be bejeweled isn’t defined in the patent’s language.” An IR camera integrated into an HMD (head mount display) would be used to track the IR image.

Using hand gesture patterns, the HMD would be controlled by a user’s hand movements. For example, a certain gesture pattern could be used to launch an application or open a document.

In addition to interacting with a wearable system that looks suspiciously like Project Glass, the IR identifier could also be used to identify individual users. For example, the system could offer pre-determined, custom eyewear settings for each user: You put on your Google glasses, look at the IR identifier on your finger, and the system would activate your user pre-sets.

Of all the input systems that could be used to control Project Glass, hand gestures would seem to make the most sense. That is, if you’re comfortable looking like you’re conducting an orchestra while walking down the street.

Tags: - - - - - - - - - - - -
Read More...

Apple Patent Application Lends Credence to Retina-Display Mac Rumors

Apple's gorgeous Retina display may not be limited to the iPhone and iPad much longer. Photo: Ariel Zambelich/Wired

Updated 4:15 Pacific time to emphasize the patent application is a continuation of a previous application.

It looks like we’ll be getting MacBook Pros with Retina displays sooner than later — that’s the news from an industry expert regarding Apple’s supply chain, and it’s supported by an Apple patent filing describing resolution-agnostic user interface design.

The Apple patent application, simply titled “User-Interface Design,” lends additional support to reports that Apple’s next-generation MacBook Pros and iMacs could feature Retina displays. The filing is a continuation of a 2007 patent application that addresses the engineering challenges intrinsic to graphical elements that are first designed for low resolutions (75 to 100 pixels per inch), but later need to be reformatted for higher resolutions (150 PPI, for example).

The patent posits a method for representing a graphical user interface in a resolution-independent way by storing a set of both resolution-independent and dependent attributes in a single file. This would allow for the creation of “a visual representation of the object at any number of resolutions.” Something like this could potentially be useful in converting UI elements to a higher resolution both in iOS and OS X.

Obviously, the patent application doesn’t directly reference upcoming refreshes to Apple’s hardware line, but it shows the company has always been thinking about the engineering challenges it might face when producing gear with significant variations in display quality.

Another data point comes from NPD DisplaySearch analyst Richard Shim, who has looked at supply chain indicators, and has reported that higher-resolution MacBooks should be on the way.

Shim told Wired that NPD DisplaySearch is seeing activity in the production of two different types of panels: a 13.3-incher and a 15.4-incher, both coming from suppliers that normally make displays for Apple notebooks. The 13.3-inch panel has a 2560×1600 resolution, which amounts to 227 PPI. The 15.4-inch model comes with a 2880×1800 resolution and 220 PPI. That’s double the resolution of current MacBook Pros. Shim said the 15-inch model started production in Q2 this year, and the 13-incher looks like it will begin production in Q3.

When the iPad jumped to a Retina display in the third generation model, the resolution doubled from that of the 2011 iPad 2. “Consumers love Apple’s retina display, so it makes sense to extend it throughout Apple’s product line,” Forrester analyst Sarah Rotman Epps told Wired via email.

Portions of Mountain Lion source code have also hinted that Retina display would arrive in 2012 Mac products. Various insider sources have confirmed the Retina display upgrade to a number of different outlets. And ABC News reported that in addition to MacBook Pros, the iMac line would also be getting a high resolution refresh.

If you’re in the market for a new Mac, looks like you should hold off for a few more months yet.

Tags: - - - - - - - - - - - -
Read More...

Gadget Lab Show: Nook Simple Touch, Pebble Smartwatch and the Big Jawbone Jambox


 
 
 
 
 
  
 
 
 

On this week’s edition of the Gadget Lab Show, the gang takes a gander at the Nook Simple Touch e-reader and the Pebble Smartwatch, the most successful Kickstarter project ever.

Gadget Lab editor Jon Phillips and Reviews editor Michael Calore open up the show with a look at the Barnes & Noble Nook Simple Touch E-Ink reader. It’s been updated from last year’s model to include an LED backlight that illuminates the screen from behind, making it easier to read at night. It’s still got a touch-sensitive screen. The light adds $40 to the price, making it $140. If you’re on the fence as to what e-reader to buy, Michael advises not to look at the e-reader itself, but the platform it belongs to.

Next up, staff writer Alexandra Chang joins Jon to talk about the Pebble Smartwatch, which she got to check out first-hand in Palo Alto, California. The display is a memory LCD, which is easy to read in bright sunlight, and refreshes more quickly than similar-looking E-Ink displays. The Pebble team sold 85,000 watches, and reached $10.2 million in their Kickstarter campaign. Pebble Smartwatches should begin shipping to the original Kickstarter backers in September.

To close the show, Michael joins Jon again to go hands-on with the new Big Jambox from Jawbone. Its design apes the original Jambox, but the speaker is about 10 inches long, and bigger in every dimension. For those who aren’t familiar, the original Jambox is an uber-popular $200 Bluetooth speaker. This larger model is $300, and works exactly the same as the original, but is way louder and has better audio quality all around.

Like the show? You can also get the Gadget Lab video podcast via iTunes, or if you don’t want to be distracted by our unholy on-camera talent, check out the Gadget Lab audio podcast. Prefer RSS? You can subscribe to the Gadget Lab video or audio podcast feeds.

Or listen to the audio below:

Gadget Lab audio podcast #151

http://downloads.wired.com/podcasts/assets/gadgetlabaudio/GadgetLabAudio0151.mp3

Tags: - - - - - - - - - - - -
Read More...

Ready or Not, Adaptive-Image Solution Is Now Part of HTML

So many screens, so few images (testing responsive sites with Adobe Shadow). Photo: Adobe.

The web needs a more intelligent way to serve images.

No one wants to waste bandwidth sending large images over limited mobile pipes, but everyone wants images to look good on the myriad screens connecting to today’s web. Currently web authors use a variety of hacks to (incompletely) work around this problem, but to really solve it the web likely needs new tools.

Unfortunately, thanks to miscommunication between standards bodies, web developers and browser makers, instead of a solution to the image problem what developers got this week feels more like a slap in the face. Eventually an adaptive image solution will likely emerge, but the real lesson for many developers will be about how the standards process works and how they fit into it, if at all.

Webmonkey has previously looked at some proposed solutions to the adaptive image problem. Some very smart web developers came up with the idea of a

<picture>

element that works much like the current HTML

<video>

element. These developers thought they had the attention of the Web Hypertext Application Technology Working Group, better known as the WHATWG. Then, earlier this week, Edward O’Connor, Apple’s WHATWG representative, proposed another method of solving the problem, using a new

srcset

attribute on the

<img>

element. See our earlier coverage of the

srcset

attribute for a more detailed look at how it works and compares to the

<picture>

proposal.

What has web developers up in arms is that Ian Hickson, editor of the WHATWG spec (and better known as Hixie) has already added the

srcset

attribute to the WHATWG’s HTML draft spec, seemingly ignoring the months of effort that went into

<picture>

. Worse, members of the WHATWG apparently weren’t even aware that developers were putting forth the effort to come up with a solution via the Responsive Images community group. Nor were concerns about the

srcset

syntax given much consideration. Hickson does address some objections to

srcset

in his message to the WHATWG, but ends up dismissing most of them.

That doesn’t match up with how most people envision the web standards process. But as web developer and standards advocate Jeremy Keith writes, “this is exactly how the WHATWG is supposed to work. Use-cases are evaluated and whatever Hixie thinks is the best solution gets put in the spec, regardless of how popular or unpopular it is.”

In fact, think of the WHATWG as the source for initial, rapid development of new features. The group was started by browser makers because the W3C’s HTML Working Group (HTMLWG) moved too slowly. But if the WHATWG is the source of rapid development, the W3C is an effective check on that speed, ensuring that even those of us who don’t make web browsers still have a voice in the future of HTML. (see our earlier overview for more on the history and differences between the HTML WG and the WHATWG.)

While the HTML WG is also chaired by Hickson (a position he will soon step down from), it offers a much more democratic (and consequently slower) process and has overridden the WHATWG’s rash decisions in the past. For example the W3C added the time element back after Hickson removed it from the WHATWG spec.

Confused yet? It gets worse. The WHATWG is working on an ever-evolving standard, what it calls a “living standard,” which is different from — and may well diverge from — the snapshot-based standards issued by the W3C, like HTML5. In a comment on longtime web standards champion Jeffery Zeldman’s post on the matter, Jeremy Keith writes, “I don’t mind if the srcset attribute is in the WHATWG HTML spec but not in the W3C HTML5 spec. If it works, it’ll end up in a future W3C version number.”

Implicit in Keith’s statement is that if the

srcset

attribute doesn’t end up working out it won’t be in HTML5.x and would likely just fade away like the blink tag, the applet tag and other HTML ideas tried and later discarded.

Which is another way of saying developers need not panic. Perhaps web developers don’t have a voice in the WHATWG simply because we’ve been using the wrong channels (W3C community groups don’t seem to be an effective means of communicating with standards bodies, in fact they seem more like this.). If you’ve got ideas and would like a voice in the future of the web join the WHATWG mailing list and login to the IRC channel. Introduce yourself, learn the rules and contribute.

Tags: - - - - - - - - - - - -
Read More...

How To Customize The WordPress Admin Easily


  

In this article, we take a break from some of the more advanced ways to customize WordPress, and share some super-easy customization techniques for the WordPress Admin area.

If you’re just getting started with WordPress, or have been running with default functionality for a while and now want to dig in with some useful and easy ways to customize your WordPress site, a great place to start is the WordPress Admin area, or backend. One of the great things about WordPress is that each part of the backend is easily customized using simple PHP functions.

customize-wp-admin

In this article, you’ll learn how to customize the login page with your own logo, add new widgets to the dashboard, add custom content to the admin footer, make it easier to get in and out of the Admin area, and more. When combined, these techniques can improve branding, accessibility, and usability of your WordPress-powered site.

Changing the Default WordPress Login URL

By default, logging in to the WordPress Admin area requires either 

/wp-admin

 or 

/wp-login.php

 in the URL, which isn’t a lot to type. You can, however, make it even easier by changing the login URL to something more memorable and better branded.

This technique requires

.htaccess

file manipulation. Usually, this is a file hidden in the root of your WordPress installation. It’s automatically created by WordPress after setting custom permalinks using URL rewriting.

First, check your SFTP/FTP client preferences to show hidden files—most FTP clients manage that. Then, check that the file

.htaccess

exists. If that is not the case, create it by using your favorite notepad. On Windows, use the Notepad++ software to create it. Open it and add this line on top:

RewriteRule ^login$ http://YOUR_SITE.com/wp-login.php [NC,L]

Just replace the login keyword with one of your choice and your website’s URL.

Now, open your favorite browser and go to http://yoursite.com/login. You’ll be redirected to the WordPress login page. Remember that your clients are not supposed to know everything about WordPress usages—a user-friendly URL is far better to remember than 

/wp-login.php.

Easy to remember, easy to teach, easy to learn!

Changing the Default External Link of the WordPress Login Page

When you log into WordPress, the default logo links to WordPress.org. Let me show you a quick tip for using your own link. Open the functions.php file. Then, add the following lines of code. And be sure to remember the PHP tag enclosure.

// Use your own external URL logo link
function wpc_url_login(){
	return "http://wpchannel.com/"; // your URL here
}
add_filter('login_headerurl', 'wpc_url_login');

Don’t forget to save the file. Log out to view the result. Better, no?

Customizing the Login logo Without a Plugin

Reinforce your brand by changing the default WordPress login logo. The logo is one of the most important elements of your brand! People will memorize it to find you quickly. Showcase it!

This is the default WordPress login screen:

To enhance it, add these lines of code in your functions.php:

// Custom WordPress Login Logo
function login_css() {
	wp_enqueue_style( 'login_css', get_template_directory_uri() . '/css/login.css' );
}
add_action('login_head', 'login_css');

The third line points towards a separate stylesheet. Even though it’s possible to use that of your default CSS theme, I advise you to use Firebug—a useful Firefox add-on—or any other Web development tool that allows you to edit your website in real-time. As you can see, just one line of code is needed to change the default logo.

#login h1 a {
	background-image: url("http://YOUR-WEBSITE.com/wp-content/themes/YOUR_THEME/images/custom_logo.png") !important;
	}

Feel free to change the logo URL if it’s not located in your theme folder. Now have a look at your login page: your custom logo appears!

If that is not the case, make sure that no white lines are present at the end of your

functions.php

file.

Changing the Footer of Your WordPress Administration

The default WordPress administration footer thanks you for using their content management system and links to WordPress.org. For professional use and website branding, you’ll want to customize this area.

Open the Appearance menu and click on Editor. Click on functions.php on the right side of your screen. You can also access the footer by using an FTP client to locate 

/wp-content/themes/NAME_OF_YOUR_THEME/functions.php

.

Now, add the following lines of code, taking care to place them between PHP tags:

// Custom WordPress Footer
function remove_footer_admin () {
	echo '© 2012 - WordPress Channel, Aurélien Denis';
}
add_filter('admin_footer_text', 'remove_footer_admin');

To customize the content, just change the second line inside the

echo

, between the quotes.

Finally, refresh your browser to see the result.

Adding Custom Widgets to Your Dashboard

It can be useful to add your own widget to provide general or commercial information. Adding a widget to the WordPress dashboard can be done very quickly. Again, open the functions.php file, then, add the following lines of code:

// Add a widget in WordPress Dashboard
function wpc_dashboard_widget_function() {
	// Entering the text between the quotes
	echo "<ul>
	<li>Release Date: March 2012</li>
	<li>Author: Aurelien Denis.</li>
	<li>Hosting provider: my own server</li>
	</ul>";
}
function wpc_add_dashboard_widgets() {
	wp_add_dashboard_widget('wp_dashboard_widget', 'Technical information', 'wpc_dashboard_widget_function');
}
add_action('wp_dashboard_setup', 'wpc_add_dashboard_widgets' );

In this example, add the desired text between the

echo

tag, after the quotes. You could also insert HTML; an unordered list for example. Name your widget—this will be the widget title—by replacing “Technical informations” with your title of choice. This is what it will look like.

If you do not see your custom widget, click on the Options menu screen located in the top right of the window to display it.

Hiding Unwanted WordPress Dashboard Widgets

The WordPress dashboard displays multiple widgets that you can easily move by dragging and dropping. To mask them definitively, just add the following lines in the functions.php file:

add_action('wp_dashboard_setup', 'wpc_dashboard_widgets');
function wpc_dashboard_widgets() {
	global $wp_meta_boxes;
	// Today widget
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
	// Last comments
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
	// Incoming links
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
	// Plugins
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
}

You can choose what widgets you’d like to hide. In this case, “Right Now”, “Recent comments”, “Incoming links” and “Plugins” have been removed from your WordPress dashboard. To learn more about this feature, have a look at the codex.

Creating Your Own Custom Admin Color Scheme

If you’re not totally satisfied with the WordPress admin color scheme, this is how you can customize it. All you need to do is create a new CSS stylesheet. In this example, we’ll call it 

admin.css

 and place it in a folder

entitled/css

. Once again, edit the functions.php file and add this snippet:

// Custom WordPress Admin Color Scheme
function admin_css() {
	wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/css/admin.css' );
}
add_action('admin_print_styles', 'admin_css' );

Your

admin.css

file must contain styles that are compatible with WordPress. Again, I recommend you use Firebug or Web Inspector to identify the right ones.

Conclusion

That’s all folks! I hope you have learned a few good tips to make WordPress act more like a white label CMS. Remember that customization is not just a branding technique, but also a way to boosting your productivity, by increasing user-friendliness.

If you’re not comfortable with PHP, you can make most of these changes with the White Label CMS WordPress plugin. Do you know any other great tips? Share them with us!

(jc)


© Aurélien Denis for Smashing Magazine, 2012.

Tags: - - - - - - - - - - - -
Read More...

Backpack Algorithms And Public-Key Cryptography Made Easy


  

E-commerce runs on secrets. Those secrets let you update your blog, shop at Amazon and share code on GitHub. Computer security is all about keeping your secrets known only to you and the people you choose to share them with.

We’ve been sharing secrets for centuries, but the Internet runs on a special kind of secret sharing called public-key cryptography. Most secret messages depend on a shared secret—a key or password that everyone agrees on ahead of time. Public-key cryptography shares secret messages without a shared secret key and makes technologies like SSL possible.

Cryptography is a scary word: it conjures thoughts of complex equations and floating-point arithmetic. Cryptography does have a lot of math, but it’s more about keeping and sharing secrets.

A Simple Secret

Telling my best friends a secret is easy: I find a private place and whisper it in their ears. As long as no one is listening in, I’m totally secure. But the Internet is full of eavesdroppers, so we need codes.

We’ve all been inventing codes since we were children. I created this simple number code (actually a cipher) when I was 5:

a=1, b=2, c=3, d=4, e=5…

It fooled my friends, but not my parents. Simple substitution ciphers are based on a lack of knowledge. If you know how they work, then you can decode every message. The experts call this “security through obscurity.” Letter and number substitutions don’t work on the Internet, because anyone can look them up on Wikipedia. For computer security, we need codes that are still secure even if the bad guys, or your parents, know how they work.

The most secure code is still easy to use: a “one-time pad.” One-time pads have been used for centuries, so they don’t even need computers. They played a big part in World War II, when each pad of paper with the key numbers was used only once.

Let’s say I wanted to send you this secret message:

I love secrets

First, I’d turn the message into numbers using my simple cipher from when I was 5. (I’ve heard rumors that other people had this idea first, but I don’t believe it.)

One-time pad step 1

Then I’d mash my keyboard to generate a random key string for my one-time pad.

One-time pad step 2

Now I can add the two strings together. If my number is greater than 26, I would just wrap it around to the beginning. So,

i(9) + e(5) = n(14)

, and

o(15) + t(20) = i(35 - 16 = 9)

. The result is an encrypted string:

One-time pad diagram

Decrypting the string to get the secret back is easy. We just subtract the one-time pad:

n(14) - e(5) = i(9)

. Follow that pattern through the entire message, and you can securely share a secret. You don’t even need a computer: just work it out with a pen and paper.

This function is called a symmetric-key algorithm, or a shared-key algorithm, since it uses the same key to encrypt and decrypt the message. Modern systems can safely use the pad more than once, but the basic idea is the same.

The one-time pad is totally secure because the bad guys don’t know how we got the encoded letter. The

n

could be

i + e

,

j + d

or any other combination. We can use our shared secret (the one-time pad) once to share another secret.

But there’s a fatal flaw. We need to share the one-time pad ahead of time before we can start sharing secrets. That’s a chicken-and-egg problem because we can’t share the pad without worrying that someone will snoop. If the bad guys get the one-time pad, then they would be able to read everything.

One-time pads help me share secrets with my best friends, but I can’t use them with strangers such as Amazon or Facebook. I need a way to share something publicly that doesn’t compromise my one-time pad. I need a public key.

The Public-Key Backpack

Public-key encryption focuses on a single problem: how do I prove that I know something without saying what it is? An easy concept to help us understand this is a backpack full of weights.

Backpack algorithm

I want to prove that I know which weights are in my pack, but I don’t want to tell you what they are. Instead of showing you all of the weights separately, I’ll just tell you the total. Now you can weigh the pack and see if I’m right without ever opening it.

If the pack weighs 20 kilos, then you wouldn’t know if it has one 20-kilo weight, twenty 1-kilo weights or something in between. With a large number, you can be pretty confident that I know what’s in the pack if I know the total; you don’t have to see inside. The weight of the backpack is the public part, and the individual weights are the private part.

This basic backpack enables us to share a secret without really sharing it. If we each have a backpack, then we can both share secrets.

The backpack works well enough for smaller numbers, but it isn’t useful in the real world. Backpack algorithms were a mere curiosity for decades. Then RSA changed everything.

RSA

RSA was the first public-key encryption system that worked in the real world. Invented more than 30 years ago, it coincided with the introduction of the more powerful computers that were needed to run the big numbers. RSA is still the most popular public-key encryption system in the world.

The basic premise of RSA is that factoring large numbers is difficult. Let’s choose two prime numbers: 61 and 53. I’m using the numbers from Wikipedia’s article on “RSA” in case you want more details.

Multiply these two numbers and you get 3233:

61 × 53 = 3233

The security of RSA comes from the difficulty of getting back to 61 and 53 if you only know 3233. There’s no good way to get the factors of 3233 (i.e. the numbers that multiply to make the result) without just looking for all of them. To think of this another way, the weight of our backpack is 3233 kilos, and inside are 61 weights weighing 53 kilos each. If you make the resulting number large enough, then finding the numbers that produced it would be very difficult.

Public And Private Keys

Public-key encryption diagram
Unlike the one-time pad, RSA uses the public key to encrypt information and the private key to decrypt it. This works because of the special relationship between the public and private keys when they were generated, which allows you to encrypt with one and decrypt with the other.

You can share the public key with anyone and never reveal the private key. If you want to send me a secret message, just ask for my public key and use it to encrypt the message. You can then send it to anyone you want, and you’ll know that I’m the only one who can decrypt the message and read it.

I could send you a message in the same way. I would ask for your public key, encrypt the message using it and then send it to you to decrypt. The popular program Pretty Good Privacy (PGP) worked like that. We’re secure as long as we both keep our private keys private.

Exchanging keys is made even easier by special key servers that allow you to search for people and find their public keys.

Public-key encryption also works in reverse to provide digital signatures. Let’s say I want to write a message and prove that I wrote it. I just encrypt it with my private key and post it. Then anyone who wants to check can decrypt it with my public key. If the decryption works, then it means I have the private key and I wrote the message.

RSA is relatively simple: take two numbers (the private key), apply some math, and get a third number (the public key). You can write out all of the math in a few lines, and yet RSA changed the world. Business doesn’t work on the Internet without public-key encryption.

RSA And HTTPS

We use public-key encryption every day with HTTPS. When you access Facebook, Twitter or Amazon with HTTPS, you’re using a simple encryption mechanism like the one-time pad, but you’re creating the pad with public-key encryption. Without HTTPS, anyone else at Starbucks could read your credit-card number, Facebook password or private email while sipping a latte.

Amazon has a certificate from a company named VeriSign. The certificate certifies that Amazon is Amazon, and it contains its public key. Your browser creates a special key just for that session and encrypts it using Amazon’s public key. Then it sends it over the Internet, knowing that only Amazon can decrypt the session key. Once you’ve exchanged that secret key, you can use it as the one-time pad to protect your password and credit-card number.

SSL key exchange diagram

You could keep using public-key encryption for the whole session, but because of all the math, it’s much slower than the one-time pad.

RSA And GitHub

Another place many of us use RSA is GitHub. Every time you push a change to GitHub or pull from a master branch, GitHub has to make sure you have permission to make the change. It gets its security through a secure command shell using RSA.

Remember when you set up your GitHub account and followed some commands to generate keys?

GitHub key generation

You used the SSH-Keygen tool to generate a new RSA private/public key pair. Then you went to your GitHub account page and entered your public key.

Now, when GitHub needs to authenticate you, it asks your computer to sign something with your private key and return the signed data. With your public key, GitHub can confirm that the signature is authentic and could only have been produced by someone who has the corresponding private key—even though GitHub itself doesn’t have that private key.

That’s better than a simple password because nobody can snoop it. And if GitHub ever gets hacked, your private key won’t be in danger because only you have it.

Sharing Passwords

When WordPress.org was “hacked”, it wasn’t really hacked. WordPress plugin developers, like everyone else, have accounts on other websites. They also reuse their passwords. When hackers cracked those other websites, they used the stolen passwords to log into WordPress.org and make malicious changes to plugins.

Most people use the same user name and password on multiple websites. That makes your website only as secure as everyone else’s. Public-key encryption changes that. Because you never have to share your private key, it doesn’t matter if other websites get hacked. If an attacker breaks into GitHub and gets your public key, they can’t use it to impersonate you or log in as you on other websites. Only someone with your private key can do that, which is why your private key remains safe on your computer. Using public-key cryptography makes GitHub much more secure.

GitHub Gets Hacked

GitHub was hacked recently, but not because the encryption failed. Real-world security breaches are caused by problems in implementation, not in math.

In this case, the hacker was able to exploit a hole and add his public key to the Ruby on Rails repository. Once the key was added, GitHub used it to verify the hacker’s identity and granted him access. We’re lucky this hacker was friendly and told GitHub about the issue.

Once the problem was fixed, you could keep using your private key because GitHub never had it to lose; it stayed on your machine. Public keys saved GitHub from serious problems.

The weakest link in GitHub’s security was in the mechanism that allowed clever users to add public keys to other projects without being authorized. The math was perfect, but the implementation wasn’t.

Public Keys In The Wild

Knowing the fundamentals is essential (you might say the key) to writing secure applications. The math is complex, but the basics are simple:

  • There are two main types of encryption: shared-key encryption, such as a one-time pad, and public-key encryption, which uses public and private keys.
  • Shared-key encryption is faster, but sharing the keys is difficult.
  • RSA is the most popular public-key encryption algorithm, but a few others are in general use, as well as some cool experimental systems.
  • Public-key cryptography works best in combination with other technologies.
  • Don’t ever share your private key with anyone.

When it comes time to implement public-key cryptography in your application, don’t. RSA and other algorithms are already implemented in all major languages. These libraries include extra security features such as padding and salts, and they have a lot of testing behind them.

Most security flaws come from poor implementations and misunderstanding about the libraries. You don’t have to write your own cryptography libraries, but you do have to know the fundamentals so that you can use the ones that are out there.

Illustrations in this article were provided by Robb Perry.

(al) (km)


© Zack Grossbart for Smashing Magazine, 2012.

Tags: - - - - - - - - - - - -
Read More...

Gadget Lab Show: Nook Simple Touch, Pebble Smartwatch, and the Big Jawbone Jambox


 
 
 
 
 
  
 
 
 

On this week’s edition of the Gadget Lab Show, the gang takes a gander at the Nook Simple Touch e-reader and Pebble Smartwatch, the most successful Kickstarter project ever.

Gadget Lab editor Jon Phillips and Reviews editor Michael Calore open up the show with a look at the Barnes & Noble Nook Simple Touch E-Ink reader. It’s been updated from last year’s model to include an LED backlight that illuminates the screen from behind, making it easier to read at night. It’s still got a touch-sensitive screen. The light adds $40 to the price, making it $140. If you’re on the fence as to what e-reader to buy, Michael advises not to look at the e-reader itself, but the platform it belongs to.

Next up, staff writer Alexandra Chang joins Jon to talk about the Pebble Smartwatch, which she got to check out first-hand in Palo Alto, California. The display is a memory LCD, which is easy to read in bright sunlight, and refreshes more quickly than similar-looking E-Ink displays. The Pebble team sold 85,000 watches, and reached $10.2 million in their Kickstarter campaign. Pebble Smartwatches should begin shipping to the original Kickstarter backers in September.

To close the show, Michael joins Jon again to go hands-on with the new Big Jambox from Jawbone. Its design apes the original Jambox, but the speaker is about 10 inches long, and bigger in every dimension. For those who aren’t familiar, the original Jambox is an uber-popular $200 Bluetooth speaker. This larger model is $300, and works exactly the same as the original, but is way louder and has better audio quality all around.

Like the show? You can also get the Gadget Lab video podcast via iTunes, or if you don’t want to be distracted by our unholy on-camera talent, check out the Gadget Lab audio podcast. Prefer RSS? You can subscribe to the Gadget Lab video or audio podcast feeds.

Or listen to the audio below:

Gadget Lab audio podcast #151

http://downloads.wired.com/podcasts/assets/gadgetlabaudio/GadgetLabAudio0151.mp3

Tags: - - - - - - - - - - - -
Read More...

The Technology Behind Virgin Atlantic’s Mid-Flight Cellphone System

Your new phone booth. Photo: Virgin Atlantic

Whether you want it or not, phone calls are coming to commercial airplane flights. But like any new service, there are technical limitations, a premium price point, and a chance someone is going to be upset sitting next to a Chatty Kathy.

On Tuesday, Virgin Atlantic announced that customers would be able to make cellphone calls and send text messages while traveling across the Atlantic. The airline announced the immediate availability of the service on select aircraft, with the feature expanding to 20 aircraft by the end of 2012.

So how will the airline keep passengers in contact with their friends back home? Virgin is using satellites and microcells.

The technology behind the system is quite straightforward. According to Virgin Atlantic’s technology partner, AeroMobile, each plane with the feature will be equipped with a picocell installed in the cabin above the heads of passengers. The picocell acts as a tiny GPRS cell tower. Because the picocell is so close to passengers, user cellphones will actually emit relatively modest signals because they won’t have to work very hard in securing a network handshake. Airplane instruments are extremely sensitive, so the less random signal in the air, the better.

To communicate with people on the ground, the picocell uses the same satellite communications system as the airplane to connect calls. AeroMobile told Wired that because of capacity restraints in existing satellite communications systems, their picocell could only connect to six mobile devices at a time.

Whether the in-flight calls will be a convenience or nuisance remains to be seen. But before you start charging your phones or purchase a pair of noise-canceling headphones, consider a few caveats.

Initially, only customers of British carriers O2 and Vodafone will be able to use the service. If and when the service is adopted by U.S. carries, it will work with GMS phones only — Virgin’s system does not work with the CDMA networks used by Sprint and Verizon. So if you’re a Sprint or Verizon customer, you may as well put your phone back into airplane mode.

Because of an FCC ban on cellphone calls from airplanes in flight, the AeroMobile system is disabled when an aircraft is within 250 miles of the U.S. border. The FCC had proposed easing the restrictions on in-flight calling in 2007, but nixed the plan, citing technical issues and complaints from the public. Apparently no one wants to sit next to someone calling his doctor for test results while 30,000 feet in the air.

Virgin Atlantic says that the new call feature is targeted at business travelers, and is intended for use in exceptional situations. These exceptional situations appear to come down to a passenger’s willingness to pay a premium for a quick call or text message. Indeed: Customers can expect to pay premium international rates for keeping in touch while in the air.

The upshot: The chances are slim you’ll be stuck next to a someone gabbing away on your next flight. Unless, of course, you’re sitting next someone with a story to tell and money to burn.

Tags: - - - - - - - - - - - -
Read More...