storage - Android - Store generated RSA private key -


i've create keypair this:

try {         keypairgenerator generator = keypairgenerator.getinstance("rsa");         generator.initialize(2048, new securerandom());         keypair pair = generator.generatekeypair();          return pair;     } catch (exception e) {         e.printstacktrace();         return null;     } 

this works fine, (obviously) want save key. saw posts none of them helped me out.

p.s. example nice!

thanks.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -