Secure Data Storage

I am currently planning to write a diary type application using Ruby and FXruby, and I am therefor looking for a secure way of storing data.