Testing Signed and Encrypted Cookies in Rails Applicationby@philnash
102 reads

Testing Signed and Encrypted Cookies in Rails Application

by Phil Nash5mJanuary 21st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

There are three flavours of cookies available: simple session cookies, signed cookies and encrypted cookies. Signed cookies are not sent to the browser as plain text. Encrypted cookies take this one step further and encrypt the data in the cookie, then sign it. You can't just call on cookies straight out of the jar if they have been signed or encrypted. The good news is we can bring the application’s own tests into play to test the result of a signed cookie, but I had a problem with the Ruby gem I was working on.
featured image - Testing Signed and Encrypted Cookies in Rails Application
Phil Nash HackerNoon profile picture
Phil Nash

Phil Nash

@philnash

Developer evangelist for Twilio and Authy. I love writing JavaScript and Ruby. console.log('🍻');

About @philnash
LEARN MORE ABOUT @PHILNASH'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Phil Nash HackerNoon profile picture
Phil Nash@philnash
Developer evangelist for Twilio and Authy. I love writing JavaScript and Ruby. console.log('🍻');

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
L O A D I N G
. . . comments & more!