Can I use ECC for encryption/decryption, just like RSA?
This has indeed been answered previously and I'd be comfortable with it being closed as a redirect to prior answers. But just in case:
No, but yes. These are signature schemes, they cannot be used like RSA. The specific thing you're proposing (directly encrypting a tiny amount of data without a hybrid encryption scheme) is not done. Notice that because key sizes for ECC are much smaller than RSA the &quot;tiny amount of data&quot; could only be a few bytes anyway.
However, the thing you'd actually want to do (encrypting arbitrary data) is possible using ECIES, here's a Wikipedia link about this approach.
https://en.wikipedia.org/wiki/Integrated_Encryption_Scheme
Also, if you're serious about using RSA to encrypt data, please stop. Safely doing this is hard in the general case, plus you've got this arbitrary limit on how much data you can encrypt. Use a hybrid scheme (like ECIES) if you want encryption.