I don't see where you're setting a key for the encryption/decryption.
Every crypto algorithm needs you to supply a key. (Which of course you
need to store somewhere safe.)
Maybe there's a better way to do what you want. Looks like you're
trying to store a user's password safely — the best way to do this is
by using the Keychain, which is (among other things) a secure
encrypted password store.