<commit_before>Google-Authenticator
==================

Google-Authenticator is a super-simple Google Authenticator client/engine in Hack/PHP. It has a super-simple API and allows you to even generate QR codes for your ease.

#### API

```hack
class Google_Authenticator {
  public static function getInstance(string $Secret): this
  public function generate(?float $Time = null): string
  public function generateQRCode(string $Title, int $Size = 5): string
  public function verify(string $Key): bool
}
```

#### Examples

```hack
$Auth = Google_Authenticator::getInstance('SomeSecretUserSpecificKey');
$Key = $Auth->generate();
$Valid = $Auth->verify($Key);
echo "Key: $Key\n";
echo "Valid: $Valid\n";
```
Generating a QR code image is super simple too!
```hack
$Auth = Google_Authenticator::getInstance('SomeSecretUserSpecificKey');
header('Content-Type: image/png');
echo $Auth->generateQRCode();
```

#### LICENSE

This project is licensed under the terms of MIT License<commit_msg>:bug: Correct README example<commit_after>Google-Authenticator
==================

Google-Authenticator is a super-simple Google Authenticator client/engine in Hack/PHP. It has a super-simple API and allows you to even generate QR codes for your ease.

#### API

```hack
class Google_Authenticator {
  public static function getInstance(string $Secret): this
  public function generate(?float $Time = null): string
  public function generateQRCode(string $Title, int $Size = 5): string
  public function verify(string $Key): bool
}
```

#### Examples

```hack
$Auth = Google_Authenticator::getInstance('SomeSecretUserSpecificKey');
$Key = $Auth->generate();
$Valid = $Auth->verify($Key);
echo "Key: $Key\n";
echo "Valid: $Valid\n";
```
Generating a QR code image is super simple too!
```hack
$Auth = Google_Authenticator::getInstance('SomeSecretUserSpecificKey');
header('Content-Type: image/png');
echo $Auth->generateQRCode("MyWebSite: <EMAIL>");
```

#### LICENSE

This project is licensed under the terms of MIT License
{'fraction_non_alphanumeric': 0.14669318746892093, 'fraction_numerical': 0.000994530084535057, 'mean_word_length': 6.059649122807017, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 10, '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': '4054689', 'n_tokens_mistral': 600, 'n_tokens_neox': 566, 'n_words': 195}