要运行示例项目,克隆仓库,并首先从 Example 目录中运行 pod install
。
示例代码
// encrypt
NSString *encryptedMessage = [X2CryptoJS encrypt:@"test message" password:@"my.password"];
// decrypt
NSString *decryptedMessage = [X2CryptoJS decrypt:encryptedMessage password:@"my.password"];
X2CryptoJS 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile。
pod "X2CryptoJS"
Alex Motoc, [email protected]
X2CryptoJS 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。