<commit_before>onetime
=======

An one-time password generation library written in Go, implementing HOTP (RFC-4226) and TOTP (RFC-6238).<commit_msg>added more sections<commit_after>onetime
=======

An one-time password generation library written in Go, implementing 
HOTP ([RFC-4226](http://tools.ietf.org/html/rfc4226)) and 
TOTP ([RFC-6238](http://tools.ietf.org/html/rfc6238)).

Example usage 
-------------

Simple 6-digit HOTP code:
```go
import "onetime"

var secret = []byte("SOME_SECRET")
var counter = 123456
var otp = onetime.Simple(6) 
var hotp = otp.HOTP(secret, counter)
```

Google authenticator style 8-digit TOTP code:
```go
import "onetime"

var secret = []byte("SOME_SECRET")
var otp = onetime.Simple(8) 
var hotp = otp.TOTP(secret)
```

Documentation
-------------
Package doc can be found [at pkgdoc.org](http://go.pkgdoc.org/github.com/gwwfps/onetime).

License
-------
This library is released under a simplified BSD license.
{'fraction_non_alphanumeric': 0.1700105596620908, 'fraction_numerical': 0.03590285110876452, 'mean_word_length': 4.06951871657754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7599426', 'n_tokens_mistral': 366, 'n_tokens_neox': 335, 'n_words': 89}