Added encrypt_str, decrypt_str, serialize, deserialize