diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/otp2289/__init__.py | 4 | ||||
| -rw-r--r-- | src/otp2289/__main__.py | 2 | ||||
| -rw-r--r-- | src/otp2289/generator.py | 2 | ||||
| -rw-r--r-- | src/otp2289/server.py | 9 |
4 files changed, 12 insertions, 5 deletions
diff --git a/src/otp2289/__init__.py b/src/otp2289/__init__.py index af8638c..4b600a0 100644 --- a/src/otp2289/__init__.py +++ b/src/otp2289/__init__.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
| 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD | 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD |
| 3 | # | 3 | # |
| 4 | # Copyright (c) 2020-2022 Simeon Simeonov | 4 | # Copyright (c) 2020-2023 Simeon Simeonov |
| 5 | # All rights reserved. | 5 | # All rights reserved. |
| 6 | # | 6 | # |
| 7 | # Redistribution and use in source and binary forms, with or without | 7 | # Redistribution and use in source and binary forms, with or without |
| @@ -40,7 +40,7 @@ from .server import ( | |||
| 40 | ) | 40 | ) |
| 41 | 41 | ||
| 42 | __author__ = 'Simeon Simeonov' | 42 | __author__ = 'Simeon Simeonov' |
| 43 | __version__ = '1.1.1' | 43 | __version__ = '1.2.0' |
| 44 | __license__ = 'BSD 2-Clause' | 44 | __license__ = 'BSD 2-Clause' |
| 45 | 45 | ||
| 46 | 46 | ||
diff --git a/src/otp2289/__main__.py b/src/otp2289/__main__.py index 78e60e8..d267b1b 100644 --- a/src/otp2289/__main__.py +++ b/src/otp2289/__main__.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
| 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD | 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD |
| 3 | # | 3 | # |
| 4 | # Copyright (c) 2020-2022 Simeon Simeonov | 4 | # Copyright (c) 2020-2023 Simeon Simeonov |
| 5 | # All rights reserved. | 5 | # All rights reserved. |
| 6 | # | 6 | # |
| 7 | # Redistribution and use in source and binary forms, with or without | 7 | # Redistribution and use in source and binary forms, with or without |
diff --git a/src/otp2289/generator.py b/src/otp2289/generator.py index 7b86e1b..73ca18b 100644 --- a/src/otp2289/generator.py +++ b/src/otp2289/generator.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
| 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD | 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD |
| 3 | # | 3 | # |
| 4 | # Copyright (c) 2020-2022 Simeon Simeonov | 4 | # Copyright (c) 2020-2023 Simeon Simeonov |
| 5 | # All rights reserved. | 5 | # All rights reserved. |
| 6 | # | 6 | # |
| 7 | # Redistribution and use in source and binary forms, with or without | 7 | # Redistribution and use in source and binary forms, with or without |
diff --git a/src/otp2289/server.py b/src/otp2289/server.py index 066cba2..4305f75 100644 --- a/src/otp2289/server.py +++ b/src/otp2289/server.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
| 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD | 2 | # SPDX-License-Identifier: BSD-2-Clause-FreeBSD |
| 3 | # | 3 | # |
| 4 | # Copyright (c) 2020-2022 Simeon Simeonov | 4 | # Copyright (c) 2020-2023 Simeon Simeonov |
| 5 | # All rights reserved. | 5 | # All rights reserved. |
| 6 | # | 6 | # |
| 7 | # Redistribution and use in source and binary forms, with or without | 7 | # Redistribution and use in source and binary forms, with or without |
| @@ -116,6 +116,13 @@ class OTPState: | |||
| 116 | return self._hash_algo | 116 | return self._hash_algo |
| 117 | 117 | ||
| 118 | @property | 118 | @property |
| 119 | def ot_hex(self) -> str: | ||
| 120 | """ot_hex-property""" | ||
| 121 | if self._current_digest is None: | ||
| 122 | return '' | ||
| 123 | return binascii.hexlify(self._current_digest).decode() | ||
| 124 | |||
| 125 | @property | ||
| 119 | def seed(self) -> str: | 126 | def seed(self) -> str: |
| 120 | """seed-property""" | 127 | """seed-property""" |
| 121 | return self._seed | 128 | return self._seed |
