Skip to content

Commit

Permalink
Fix typos in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
NotStatilko committed Aug 31, 2023
1 parent 9f67a92 commit a744d3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tgbox/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class RemoteBoxInaccessible(TgboxException):
"""The RemoteBox you try to use is inaccessible"""

class NotEnoughRights(TgboxException):
"""You don't have rigths for this action"""
"""You don't have rights for this action"""

class NoPlaceLeftForMetadata(TgboxException):
"""Your edited metadata overflow Telegram caption limit"""
Expand All @@ -73,7 +73,7 @@ class AlreadyImported(TgboxException):
"""LocalBox have file with same ID"""

class NotImported(TgboxException):
"""The file you try to retrieve wasn\'t imported yet"""
"""The file you try to retrieve wasn't imported yet"""

class FingerprintExists(TgboxException):
"""File with the same file path already uploaded to the Box"""
12 changes: 6 additions & 6 deletions tgbox/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __eq__(self, other) -> bool:

@property
def phrase(self) -> bytes:
"""Returns currrent raw phrase"""
"""Returns current raw phrase"""
return self._phrase

@classmethod
Expand Down Expand Up @@ -217,7 +217,7 @@ def encode(self) -> str:
return prefix + urlsafe_b64encode(self._key).decode()

def hex(self) -> str:
"""Returns key in hex represenation"""
"""Returns key in hex representation"""
return self._key.hex()

class BaseKey(Key):
Expand All @@ -231,7 +231,7 @@ def __init__(self, key: bytes):

class MainKey(Key):
"""
``MainKey`` may be reffered as "Box key". This
``MainKey`` may be referred as "Box key". This
key encrypts all box data and used in ``FileKey``
creation. It's one of your most important ``Key``,
as leakage of it will result in compromising all
Expand Down Expand Up @@ -376,7 +376,7 @@ def make_mainkey(basekey: BaseKey, box_salt: BoxSalt) -> MainKey:
Arguments:
basekey (``bytes``):
Key which you recieved with scrypt
Key which you received with scrypt
function or any other key you want.
box_salt (``BoxSalt``):
Expand Down Expand Up @@ -455,7 +455,7 @@ def make_requestkey(key: Union[MainKey, BaseKey],
is called ``ShareKey``. Use help on ``make_sharekey``.).
B sends received ``RequestKey`` to A. A makes ``ShareKey``
and sends it to B. B calls ``get_importkey`` and recieves the
and sends it to B. B calls ``get_importkey`` and receives the
``ImportKey``, which is, in fact, a ``FileKey``.
No one except Alice and Bob will have ``FileKey``. If Alice want
Expand Down Expand Up @@ -525,7 +525,7 @@ def make_sharekey(
You may want to know what is ``RequestKey`` before reading
this. Please, run help on ``make_requestkey`` to get info.
Alice recieved ``RequestKey`` from Bob. But what she should do
Alice received ``RequestKey`` from Bob. But what she should do
next? As reqkey is just EC-pubkey, she wants to make a *shared
secret key*. A makes her own privkey, with ``sha256(mainkey
+ sha256(salt + requestkey))`` & initializes ECDH with B pubkey
Expand Down
2 changes: 1 addition & 1 deletion tgbox/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

class _TypeList:
"""
This is cutted version of ``list()`` that
This is small version of ``list()`` that
checks type on ``.append(...)``.
You can specify multiply types with
Expand Down

0 comments on commit a744d3a

Please sign in to comment.