1: <?php
2: namespace Sotr\Crypto;
3:
4: /**
5: * A simple implementation of a nonce
6: * generator which returns the current
7: * UNIX timestamp as the nonce.
8: */
9: class TimestampNonceGenerator implements NonceGeneratorInterface
10: {
11: public function generateNonce()
12: {
13: return time();
14: }
15: }
16: