@@ -80,7 +80,7 @@ def __eq__(self, other) -> bool:
80
80
81
81
@property
82
82
def phrase (self ) -> bytes :
83
- """Returns currrent raw phrase"""
83
+ """Returns current raw phrase"""
84
84
return self ._phrase
85
85
86
86
@classmethod
@@ -217,7 +217,7 @@ def encode(self) -> str:
217
217
return prefix + urlsafe_b64encode (self ._key ).decode ()
218
218
219
219
def hex (self ) -> str :
220
- """Returns key in hex represenation """
220
+ """Returns key in hex representation """
221
221
return self ._key .hex ()
222
222
223
223
class BaseKey (Key ):
@@ -231,7 +231,7 @@ def __init__(self, key: bytes):
231
231
232
232
class MainKey (Key ):
233
233
"""
234
- ``MainKey`` may be reffered as "Box key". This
234
+ ``MainKey`` may be referred as "Box key". This
235
235
key encrypts all box data and used in ``FileKey``
236
236
creation. It's one of your most important ``Key``,
237
237
as leakage of it will result in compromising all
@@ -376,7 +376,7 @@ def make_mainkey(basekey: BaseKey, box_salt: BoxSalt) -> MainKey:
376
376
377
377
Arguments:
378
378
basekey (``bytes``):
379
- Key which you recieved with scrypt
379
+ Key which you received with scrypt
380
380
function or any other key you want.
381
381
382
382
box_salt (``BoxSalt``):
@@ -455,7 +455,7 @@ def make_requestkey(key: Union[MainKey, BaseKey],
455
455
is called ``ShareKey``. Use help on ``make_sharekey``.).
456
456
457
457
B sends received ``RequestKey`` to A. A makes ``ShareKey``
458
- and sends it to B. B calls ``get_importkey`` and recieves the
458
+ and sends it to B. B calls ``get_importkey`` and receives the
459
459
``ImportKey``, which is, in fact, a ``FileKey``.
460
460
461
461
No one except Alice and Bob will have ``FileKey``. If Alice want
@@ -525,7 +525,7 @@ def make_sharekey(
525
525
You may want to know what is ``RequestKey`` before reading
526
526
this. Please, run help on ``make_requestkey`` to get info.
527
527
528
- Alice recieved ``RequestKey`` from Bob. But what she should do
528
+ Alice received ``RequestKey`` from Bob. But what she should do
529
529
next? As reqkey is just EC-pubkey, she wants to make a *shared
530
530
secret key*. A makes her own privkey, with ``sha256(mainkey
531
531
+ sha256(salt + requestkey))`` & initializes ECDH with B pubkey
0 commit comments