<commit_before># AppSecret generation

In order to allow application to perform a successful Dynamic Client Registration a fingerprint of the app needs to be provided to the client configuration on the Token Server.


## Android

Since version 3.02.01 Android-SDK uses calculated binary checksum as a application secret when responding to OCRA challenge in DCR flow. Such approach provides additional security protecting clients app against tampering/modification.
Please note that for each platform uses its own dedicated BinaryHashCalculator instance.


#### Calculating value
Navigate to 'binaryhashcalculator' folder and from the command line execute:
```bash
java com.onegini.mobile.hashCalc.HashCalculator PATH_TO_BINARY_FILE
```

If provided path is valid the program will print calculated hash value. 
```bash
Calculated hash - a491d0374840ac684d6bcb4bf9fc93ee4d9731dbe2996b5a1db2313efb42b7e
```

### iOS

Since version 3.02.00 iOS-SDK calculates binary fingerprint and uses it as an application secret when responding to OCRA challenge in DCR flow. Such approach provides additional security protecting client's application against tampering/modification.

#### Calculating value<commit_msg>MS-456 documentation review changes<commit_after># AppSecret generation

In order to allow application to perform a successful Dynamic Client Registration a fingerprint of the app needs to be provided to the client configuration on the Token Server.

> Please note that each platform uses its own dedicated BinaryHashCalculator instance.


## Android

Since version 3.02.01 Android-SDK uses calculated binary checksum as a application secret when responding to OCRA challenge in DCR flow. Such approach provides additional security protecting clients app against tampering/modification.


#### Calculating value
Navigate to 'binaryhashcalculator' folder and from the command line execute:
```bash
java com.onegini.mobile.hashCalc.HashCalculator PATH_TO_BINARY_FILE
```

If provided path is valid the program will print calculated hash value. 
```bash
Calculated hash - a491d0374840ac684d6bcb4bf9fc93ee4d9731dbe2996b5a1db2313efb42b7e
```

### iOS

Since version 3.02.00 iOS-SDK calculates binary fingerprint and uses it as an application secret when responding to OCRA challenge in DCR flow. Such approach provides additional security protecting client's application against tampering/modification.

#### Calculating value
{'fraction_non_alphanumeric': 0.04460966542750929, 'fraction_numerical': 0.039239983477901696, 'mean_word_length': 5.653846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5367819', 'n_tokens_mistral': 689, 'n_tokens_neox': 586, 'n_words': 285}