简体   繁体   English

使用Objective-C签名文件(iOS / Mac)

[英]Sign file with objective-c (ios/mac)

My application create,export and import files, to know if an imported file is mine, i use an extension but this is not enough, so i add a string (as data) to the file to detect it, but again i think that is not the right way to do it. 我的应用程序创建,导出和导入文件,以了解导入的文件是否属于我,我使用扩展名,但这还不够,因此我向文件中添加了一个字符串(作为数据)以进行检测,但是我再次认为这是不是正确的方法。

can you tell me if there's a way on objective-c do that? 你能告诉我在Objective-C上是否有办法做到这一点?

Sounds like a job for Uniform Type Identifiers . 对于统一类型标识符来说,这听起来像是一项工作。 The UTI mechanism provides the ability to identify different types of data based on different criteria. UTI机制提供了根据不同标准识别不同类型数据的能力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM