安卓:如何解密与RSA密钥的OpenSSL的加密文件? [英] Android: how to decrypt an openssl encrypted file with RSA key?

查看:202
本文介绍了安卓:如何解密与RSA密钥的OpenSSL的加密文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将文件从服务器传输到Android。该文件是由OpenSSL的使用RSA私钥加密,和android应与相应的公钥进行解密。我应该怎么实现它在android系统?可能有人给我一个例子吗?谢谢!

I need to transfer a file from server to android. The file is encrypted by openssl with RSA private key, and android should decrypt it with the corresponding public key. How should i implement it in android? Could someone give me an example? Thanks!

推荐答案

我已经添加了如何在这里我的答案做到这一点在Android上一些例如code:
http://stackoverflow.com/a/12101100/546054

I've added some example code on how to do this on Android in my answer here: http://stackoverflow.com/a/12101100/546054

这篇关于安卓:如何解密与RSA密钥的OpenSSL的加密文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆