Android Question RSA: How to save/load a key to/from an array of bytes.

Rorry

Member
Licensed User
Longtime User
Hello,
i spent hours trying to save (or) load a key to (or) from an array of bytes var

i found an example in the forum wich generate keys then crypt & decrypt a string.
what i dont understand,it's how i have to use

- PrivateKeyFromBytes
- PrivateKeyToBytes
- PublicKeyFromBytes
- PublicKeyToBytes

i dont wanna use any file,just an array of bytes.

and is it possible to use your own pair of keys?

an example should be very welcome.

Thanks for help.
 
Top