(no title)
PLejeck | 12 years ago
Also, doesn't cryptographically signing (or fully encrypting, in Rails 4) the cookie just add more time to processing than using a database? I always assumed cryptography is slower than IO
PLejeck | 12 years ago
Also, doesn't cryptographically signing (or fully encrypting, in Rails 4) the cookie just add more time to processing than using a database? I always assumed cryptography is slower than IO
progn|12 years ago
Cryptography is a CPU-bound operation that often has specialized hardware support. Here's a rule of thumb: in modern computing, IO incurs a greater cost than pretty much anything you can do locally on-CPU. IO is incredibly expensive: cryptography, not so much. If you pipeline your crypto operations and disk fetches, you won't increase response latency at all.
etfb|12 years ago
RyanZAG|12 years ago
[1] http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security
thibaut_barrere|12 years ago
Useful link: http://jamescrisp.org/2013/08/04/moving-to-https-rails-force...
joesb|12 years ago
PLejeck|12 years ago
It's as simple as that. Never assume that anything transmitted over HTTP is safe, because that assumption will come back to bite you.
__chrismc|12 years ago
unknown|12 years ago
[deleted]