Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get the binary representation as NSData #6

Open
lexar opened this issue Oct 16, 2014 · 1 comment
Open

get the binary representation as NSData #6

lexar opened this issue Oct 16, 2014 · 1 comment
Assignees

Comments

@lexar
Copy link

lexar commented Oct 16, 2014

Hi,
[FileHash md5HashOfFileAtPath:myPath] returns the hexadecimal representation of the digest. I would need the 16 bytes binary form, is there any way to get this?
Reason? I need to apply a base64 on the binary data using
[md5ByteStringData base64EncodedStringWithOptions:0]
and put this into a content-md5 HTTP header.
I searched now for a long time and could not find any convenient way to do this.
Any help appreciated.

@JoeKun
Copy link
Owner

JoeKun commented Oct 17, 2014

Thanks for taking the time to file an issue for this feature request. I think this is a fair request, and I like the idea.

I'll try to implement this in the next couple of days and release FileMD5Hash 2.1.0 with this new API.

@JoeKun JoeKun self-assigned this Oct 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants