CommonCrypto-in-Swift | An exploration of the CommonCrypto framework in swift | iOS library
kandi X-RAY | CommonCrypto-in-Swift Summary
kandi X-RAY | CommonCrypto-in-Swift Summary
This projects contains SymmetricCryptor, a class designed to show the use of CommonCrypto in Swift. It also contains a demo UIViewController for testing the different symmetric encryption/decryption algorithms and options and how to use them in Swift.
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 CommonCrypto-in-Swift
CommonCrypto-in-Swift Key Features
CommonCrypto-in-Swift Examples and Code Snippets
Community Discussions
Trending Discussions on CommonCrypto-in-Swift
QUESTION
I am trying to connect to the coinspot API which has very shoddy documentation. Link below:
https://www.coinspot.com.au/api
It requires an HMAC SHA512 hash attached to the user's secret key, then a nonce key In the parameters of a POST request which is a timestamp turned to an integer to stay unique at each request. The header requires both the API key and the signature.
I use Alamofire's JSON encoded post request through coinspot's private API URL https://www.coinspot.com.au/api
Seems I get a success message for connecting but get an {status = invalid;} response.
The only 2 things I can think of are a wrong POST request (which doesn't seem the case, as if I don't add the nonce key in the parameters, I get a proper response requesting for one from the server), and the HMAC SHA-512 hash. I've taken the code from HMAC SHA512 using CommonCrypto in Swift 3.1
And modified it slightly to just include the SHA512 hashing.
Code below:
...ANSWER
Answered 2018-Jan-18 at 13:15Coinspot API is down, with no ETA: Coinbase API down
I continue to receive {'status': 'invalid'}
back from any request I make.
Their publicapi is still up, albeit only for BTC, LTC, and DOGE.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CommonCrypto-in-Swift
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