Android:如何使用RSA密钥解密openssl加密文件? [英] Android: how to decrypt an openssl encrypted file with RSA key?

查看:305
本文介绍了Android:如何使用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上执行此操作的示例代码:
https://stackoverflow.com/a/12101100/546054

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

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

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