Tuesday, March 14, 2017

How to convert a string into sha256 in iOS

To convert a string into sha256 use the following code.

[str SHA256DigestString];

The O/P would be something like 3026d32a577df45d512fb409e17be0acc56baa02d9447a8eea4c542719e2a2ce

No comments: