Ayende @ Rahien

It's a girl

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!


Posted By: Ayende Rahien

Published at

Originally posted at


07/11/2012 10:04 AM by

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.