Created
March 28, 2017 23:46
-
-
Save choppinrox/a8d9471af7b30e93a0bd9eba520e91a0 to your computer and use it in GitHub Desktop.
Snippet to MD5 to easily sort MD5 hashes for the lulz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MD5.h | |
| // LulzStack | |
| // | |
| // Created by Nikolai Annenkoff on 3/28/17. | |
| // Copyright © 2017 Nikolai Annenkoff. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface MD5 : NSArray | |
| - (NSArray *)sortByEntropy; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MD5.m | |
| // LulzStack | |
| // | |
| // Created by Nikolai Annenkoff on 3/28/17. | |
| // Copyright © 2017 Nikolai Annenkoff. All rights reserved. | |
| // | |
| #import "MD5.h" | |
| @implementation MD5 | |
| - (NSArray *)sortByEntropy { | |
| return [self sortedArrayUsingSelector:@selector(compare:)]; | |
| } | |
| + (NSArray *)testData { | |
| return @[@"f97c5d29941bfb1b2fdab0874906ab82", | |
| @"b8a9f715dbb64fd5c56e7783c6820a61", | |
| @"35d6d33467aae9a2e3dccb4b6b027878", | |
| @"8cbad96aced40b3838dd9f07f6ef5772", | |
| @"30056e1cab7a61d256fc8edd970d14f5", | |
| @"f52b5e449a2303c031a0c3a1109360bf", | |
| @"bb3aec0fdcdbc2974890f805c585d432", | |
| @"24d27c169c2c881eb09a065116f2aa5c", | |
| @"c785e1ed2950e3e36b1e2ca01f299a54", | |
| @"b1b9a972ccd8c962a473909b97007eb4"]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍