RSA using SpongyCastle
My knowledge of encryption is very basic, so apologies for any ignorance on my part. Within an Android app I am currently trying to mimic the execution of this command using the SpongyCastle library and standard java.security libs: echo 'test' | openssl rsautl -encrypt -pubin -inkey test.pub | base64 > encrypted_file It should be noted that the reading/writing to and from files in the command are not going to be implemented and I have my public key (i.e. test.pub ) as a Base64 encoded string base64key in my code. I have attempted the following but am certain it does not work: static { Security