Back to All

Error when using ASN.1 encryption key

I've tried encrypting data and passing it to createAccount after encryption it using an Raw encryption key. However, I'm getting back an error when creating the account.

{
"SC": 500,
"EC": "3C4F5130"
}

I'm encrypting a test card, so here is the data before encryption:
5200828282828210|203001|

Here is the data after encryption (passing it as a base64 of the encrypted data):
CYiimP0nYWsftbUjDq7jfxMhb/tEtZsZIdddJOBZ2prZlXMFX4RQLYrD6roAy+3qLWdDYSJBuL0pwffJrEc0TmDPKrOUytydIEEuY+nlaTCcs4QzYmF/9TXoHyARIQMLCMd2ttJtCZmWZVu53O4kZnhr2rJ9iY1qsy6djhrG4klepoVifHKg4zzQEtE2/gs+8gZU0cKsFv120N3FzOOynIlrbx6FpS/Uq5VCCuMg3nVmzZINiJb0Dldn5MvRulR9Ticvw+GqWC//45pWVoOT8PxQ1WR23BdEh3/070T9K2iE6HLXAC9Z7gedaWyKqtDUFia54XXsT0quYf7QycpHKQ==

I have the KeyID too if that's needed.