[eluser]WanWizard[/eluser]
Which version of CI? I've read somewhere that 2.0 has an issue with the encryption library.
If you replace the encrypt/decrypt with something simple, like strtolower() and strtoupper(), does that work? If so, it's not a Datamapper issue, but a CI issue. I don't see anything obviously wrong with your code.