SwiftyRSA | RSA public/private key encryption in Swift | iOS library
kandi X-RAY | SwiftyRSA Summary
kandi X-RAY | SwiftyRSA Summary
[] SwiftyRSA is used in the [Scoop] [iOS app] to encrypt driver license numbers before submitting them to Checkr through our API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SwiftyRSA
SwiftyRSA Key Features
SwiftyRSA Examples and Code Snippets
Community Discussions
Trending Discussions on SwiftyRSA
QUESTION
I am trying to sign a piece of text using a private key using SwiftyRSA, which I do successfully. Then send the signature to the python server which holds the public key for verification. the But I keep receiving the InvalidSignature
exception.
I have tried different hashing algorithms, bit sizes, but still the same InvalidSignature
exception. I am sure that the key and signature are related b/c they are generated at the same time!
My issue is not with the libraries themselves--which I think are functioning properly. I think it has to do with a padding discrepancy between the two libraries. Cryptography is using PSS, while I cant find the padding/salt that SwiftyRSA uses.
Key Verification Script ...ANSWER
Answered 2021-Feb-20 at 20:14It appears that SwiftyRSA's signing APIs use only PKCS1 and not PSS. See: https://github.com/TakeScoop/SwiftyRSA/blob/master/Source/Signature.swift#L20-L27
So to resolve this you'll want to switch your padding from PSS to PKCS1v15 on the Python side.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SwiftyRSA
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page