是否有与Mac SecTransform.h头文件中的SecTransformRef等效的iOS?我遇到一个语义问题,其中有一个未知类型名称'SecTransformRef'。看起来,SecTransform.h文件在iOS端不存在,我试图从Mac端获得相同的功能到iOS版本。手头的主要目标是客户端加密和Base64编码通信。iOS等价于SecTransformRef?
2
A
回答
3
安全转换只能在OS X.
可如果你想对称的加密请花文档页面上的样子: https://developer.apple.com/library/mac/documentation/security/Conceptual/cryptoservices/GeneralPurposeCrypto/GeneralPurposeCrypto.html#//apple_ref/doc/uid/TP40011172-CH9-SW14
也
+0
有趣。感谢您的参考。你碰巧知道iOS上是否有Base64编码? – David
+0
请参考Abizern对您的问题的评论(NSData + Base64类别) –
相关问题
- 1. iOS等价于macappstore:// showUpdatesPage
- 2. iOS等价于opencv的warpPerspective?
- 3. iOS的”等价于[NSColor colorUsingColorSpaceName:NSCalibratedRGBColorSpace]
- 4. iOS - 什么等价于“stretchableImageWithLeftCapWidth:0 topCapHeight:0”?
- 5. Android等价于applicationDidBecomeActive和applicationWillResignActive(来自iOS)
- 6. iOS等价物onRestart()
- 7. 等价于BN_hex2bn
- 8. 等价于getbounds
- 9. `expect_any_instance_of`等价于PHPUnit
- 10. C++等价于Tidy
- 11. Scala等价于java.util.Collection?
- 12. iPad等价于onmousemove?
- 13. WPF等价于ActiveControl?
- 14. SizeToContent等价于WinForm?
- 15. jconsole等价于.Net?
- 16. Scala等价于pyTables?
- 17. Java等价于IntPtr.ZERO?
- 18. C++等价于SerializeWithLengthPrefix
- 19. Python等价于bwmorph
- 20. JAXB等价于@Mappedsuperclass
- 21. WPF等价于TextRenderer
- 22. xmlseealso等价于Simplexml
- 23. jquery等价于form.field_name?
- 24. BorderLayout.CENTER等价于SWT?
- 25. JVMTI等价于.NET
- 26. java等价于mkstemp
- 27. IPAddress.HostToNetworkOrder()等价于WinRT?
- 28. jQuery等价于querySelector
- 29. GLSL等价于sampler_state?
- 30. fromCharCode等价于Ruby
这不是只是缺少头文件,而是在iOS上不存在SecTransform功能。如果你能描述你希望完成的事情,那么有人可能会提出一个跨平台的解决方案。 –
@TomHarrington我正在尝试使用Base64编码进行一些客户端加密和通信。有任何想法吗? – David
Matt Gallagher做了一个类[NSData + Base64](http://www.cocoawithlove.com/2009/06/base64-encoding-options-on-mac-and.html)。如果你想看到一个与现代Xcode很好地配合的调整版本 - 我已经把它作为[主要](https://gist.github.com/Abizern/5629965) – Abizern