salt

Safe Salt Generation with Merb (and a litle bit about irsea)

    So, this is a bit of a two-in-one here, so before I get started I have an announcement to make, ircwall's source code will soon be available for download. The name for the codebase will become irsea, and it will be freely available under the BSD license, although my SASS/HAML template for ircwall will not ;)

    Now, while refactoring some of irsea to make it suitable for easy installation, I needed a way to generate a secure salt for the application automatically, so you didn't have to make or generate your own during the install process. This is because merb by default stores the session in a cookie like a good little web framework, but it needs a secure salt to hash the cookie against. So, I present you with SecureSession.