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

Could not obfuscate Use different salt #8

Closed
dholdaway opened this issue Jun 15, 2016 · 3 comments
Closed

Could not obfuscate Use different salt #8

dholdaway opened this issue Jun 15, 2016 · 3 comments

Comments

@dholdaway
Copy link

when trying to obfuscate a web address with a hyphen in it, it returns

2016-06-15 13:27:36.955 Impl.[47263:1595477] Could not obfuscate: http://xxx-xx.xxxxxxxx.xxx/ - Use different salt

any ideas how i can get around this ?

works fine with all my other variables which dont have special characters.

@pjebs
Copy link
Owner

pjebs commented Jun 15, 2016

Yes. Just add more classes to generateCodeWithSalt:

[Obfuscator generateCodeWithSalt:@[[NSString class], [AppDelegate class], [NSObject class]]
                         WithStrings:@[
                                       @{@"id": @"webAddress", @"string":@"http://xxx-xx.xxxxxxxx.xxx/"},
                                       @{@"id": @"BB", @"string":@"testKey"},
                                       @{@"id": @"CC", @"string":@"parseKey1234"},
                                       ]];

@pjebs
Copy link
Owner

pjebs commented Jun 15, 2016

Add as many classes as you want and for each class added, you increase the chance of obfuscating significantly. Special characters are not the issue.

@dholdaway
Copy link
Author

yep that did the trick, i miss read the documentation.

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