zkrige / ios-pkcs7-decrypt Goto Github PK
View Code? Open in Web Editor NEWiOS PKCS7 S/MIME decrypt utility
License: MIT License
iOS PKCS7 S/MIME decrypt utility
License: MIT License
privateKey is pfx file path?
cer is cer file path ? \
like this?
let path = Bundle.main.path(forResource: "hello2", ofType: "txt")
let plainTxt = try! String(contentsOfFile: path!)
let privateKeyPath = "file:///var/mobile/Containers/Data/Application/EBC61F8F-CDA8-41BE-86ED-0DD51589D620/Documents/CloudDiskFile_257140_10000/shanwzh.pfx"
let cerPath = "file:///var/mobile/Containers/Data/Application/EBC61F8F-CDA8-41BE-86ED-0DD51589D620/Documents/CloudDiskFile_257140_10000/hello.cer"
let decrypted = PKCS7Decrypt.decrypt(plainTxt, privateKey: privateKeyPath, certificate: cerPath)
return decrypted!
is plainTxt is base64 char?
first parameters is .p7m file data->encodingwith utf8?
second parameters is pri_key.pem file data encoding with utf8?
third is .cer file data encoding with utf8 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.