Vedroid36
11/8/2018 - 12:15 PM

.h

- (void)_generateKeyForLogInData:(SXLogInData *)data {

   [self _logMessage:[NSString stringWithFormat:@“SHA1 1st step %@“, [self _hashHexSHA1:data.username withSalt:data.uuid]]];

   NSString *bCrypt = [self _bCryptPassword:data.password withSaltData:[self _hashDataSHA1:data.username withSalt:data.uuid]];

   data.key = [self _finalProcessingForUnsaltedUsernameHashData:[self _hashDataSHA1:data.username withSalt:@“”] passwordHashData:[self _hashDataSHA1:bCrypt withSalt:data.uuid]];


   [self performSelectorOnMainThread:@selector(_keyDidGenerateForLogInData:) withObject:data waitUntilDone:NO];
}