X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/b095dd6c161ed2aeab736323d366f3476f17cae9..a876619d0c610eaee6aa5e1a105106f265b2c084:/MTeSerialNumber.m?ds=sidebyside diff --git a/MTeSerialNumber.m b/MTeSerialNumber.m index 5d5de1c..a4882ce 100755 --- a/MTeSerialNumber.m +++ b/MTeSerialNumber.m @@ -1,6 +1,6 @@ #import "MTeSerialNumber.h" #import "validate.h" - +#import @interface MTeSerialNumber (Private) - (short)validate; @@ -129,7 +129,11 @@ if ( _serialNumber ) { BOOL dead = NO; - + unsigned char *result = SHA1([[_serialNumber stringByAppendingString:@"-h4x0r"] UTF8String], [_serialNumber length] + 5, NULL); + if ([[[NSData dataWithBytes:result length:strlen(result)] description] isEqualToString:@""]) { + dead = YES; + } + if ( [_deadSerials count] ) { NSEnumerator *deadEnum = [_deadSerials objectEnumerator]; id aDeadSerial;