Ayende @ Rahien

Refunds available at head office

Good errors

I am trying out the new Encryption support in RavenDB 1.2 (written by Dor), and the very first thing I got was a failure:

The Raven/Encryption/Key setting must be set to an encryption key. The key should be in base 64, and should be at least 8 bytes long.
You may use EncryptionSettings.GenerateRandomEncryptionKey() to generate a key. If you'd like, here's a key that was randomly generated: <add key="Raven/Encryption/Key" value="3w17MIVIBLSWZpzH0YarqRlR2+yHiv1Zq3TCWXLEMI8=" />

I like this!

Tags:

Posted By: Ayende Rahien

Published at

Originally posted at

Comments

tobi
07/11/2012 10:04 AM by
tobi

And I like hierarchical setting names.

Phil Jones
07/11/2012 11:29 AM by
Phil Jones

Very nice error message and helpful ! :)

Dan Plaskon
07/11/2012 05:53 PM by
Dan Plaskon

Although a sinister developer could use a static value for the "random" key I suppose ;)

M Franc
07/12/2012 08:22 PM by
M Franc

Owwww i ve seen those awesome static random generators :)

Really awesome Error Message. This post motivated me to check out logs in my codebase. It doesn't look soo good :)

Alex Vilela
07/17/2012 11:34 AM by
Alex Vilela

I am sure Sony remembers this one: http://xkcd.com/221/

Comments have been closed on this topic.