Project v1

This commit is contained in:
Ádám Kovács
2023-11-02 16:02:16 +01:00
parent 70e8d2d79a
commit db76621806
171 changed files with 23617 additions and 0 deletions

45
.vscode/Pico-W-Stub/uhashlib.pyi vendored Normal file
View File

@@ -0,0 +1,45 @@
"""
Hashing algorithms.
MicroPython module: https://docs.micropython.org/en/v1.21.0/library/hashlib.html
CPython module: :mod:`python:hashlib` https://docs.python.org/3/library/hashlib.html .
This module implements binary data hashing algorithms. The exact inventory
of available algorithms depends on a board. Among the algorithms which may
be implemented:
* SHA256 - The current generation, modern hashing algorithm (of SHA2 series).
It is suitable for cryptographically-secure purposes. Included in the
MicroPython core and any board is recommended to provide this, unless
it has particular code size constraints.
* SHA1 - A previous generation algorithm. Not recommended for new usages,
but SHA1 is a part of number of Internet standards and existing
applications, so boards targeting network connectivity and
interoperability will try to provide this.
* MD5 - A legacy algorithm, not considered cryptographically secure. Only
selected boards, targeting interoperability with legacy applications,
will offer this.
"""
from _typeshed import Incomplete, Incomplete as Incomplete
from typing import Any, Optional
class sha256:
"""
Create an SHA256 hasher object and optionally feed ``data`` into it.
"""
def digest(self, *args, **kwargs) -> Incomplete: ...
def update(self, *args, **kwargs) -> Incomplete: ...
def __init__(self, data: Optional[Any] = None) -> None: ...
class sha1:
"""
Create an SHA1 hasher object and optionally feed ``data`` into it.
"""
def digest(self, *args, **kwargs) -> Incomplete: ...
def update(self, *args, **kwargs) -> Incomplete: ...
def __init__(self, data: Optional[Any] = None) -> None: ...