iOS 和 Windows Phone 兼容加密

发布于 2024-12-24 22:30:46 字数 463 浏览 3 评论 0原文

我是一个真正的加密菜鸟。在为这个问题苦思冥想了几天之后,我决定在 StackOverflow 上寻求帮助。

目前我正在为 iOS、Android 和 Windows Phone 开发移动应用程序。在应用程序中,我需要使用加密的 URL 从服务器请求数据。因为应用程序必须适用于 iOS、Android 和 Windows Phone,所以我需要使用适用于每个平台的加密。我决定使用带有密钥和 iv 的 AES 加密。

我已经获得了适用于 Windows Phone 的 AES 加密,但我真的被 iOS 困住了。我在网上搜索了一个很好的例子,但没有找到任何可以解释整个过程的内容。任何人都可以通过给我一个例子(带解释)或一个好的网址来帮助我吗?

非常感谢您的帮助!

编辑:

我知道我想根据密钥和 iv 生成 AES 密钥。我想用 aes 密钥加密我的密码。确切的问题是我将如何在代码中做到这一点。

I'm a real noob to encryption. After breaking my head over this for a couple of days i've decided to search for help on StackOverflow.

Currently I'm developing mobile applications for iOS, Android and Windows Phone. In the application i need to request data from a server with an encrypted url. Because the application has to be for iOS, Android and Windows Phone i need to use an encryption that works on each platform. I've decided to use AES encryption with a key and an iv.

I've gotten the AES encryption to work for Windows Phone, but am really stuck on iOS. I've searched the web for a good example but haven't found anything that explained the whole proces. Could anyone help me by giving me an example (with explanation) or a good URL?

Would really appreciate the help!

Edit:

I know I want to generate an AES key based on a key and an iv. With the aes key i want to encrypt my password. The exact question is how i would do that in code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

瀟灑尐姊 2024-12-31 22:30:46

我使用 openssl 在设备和平台之间进行加密。有相当多的可用文档,我很确定它可以满足您的需要。

github 上也有几个可用的包装器,可以使加密/解密变得更容易。

OpenSSL

I have used openssl for encryption between devices and platforms. There is quite of bit of documentation available and I'm pretty sure it will work for what you need.

There are also several wrappers available on github too to make encrypt/decrypting a bit easier.

OpenSSL

烙印 2024-12-31 22:30:46

我最终使用了 AES。此加密类型适用于 Android、iOS 和 Windows Phone。
对于 iOS 和 Android,互联网上有可用的插件,可以让您的工作更轻松。只需搜索 {platformname} AES,您就会获得足够的网站。

I've ended up using AES. This Encryption type is available for Android, iOS and Windows Phone.
For iOS and Android there are plugins available on internet to make the work easier for you. Just search for {platformname} AES and you should get enough websites.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文