Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 10, 2024
1 parent a807bbd commit c3b0e74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/litdata/utilities/encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def decrypt(self, data: bytes) -> bytes:

class FernetEncryption(Encryption):
"""Encryption for the Fernet package.
Adapted from: https://cryptography.io/en/latest/fernet/
"""

def __init__(self, passsword: str) -> None:
Expand Down Expand Up @@ -50,7 +52,9 @@ def _derive_key(self, password: str) -> bytes:

class RSAEncryption:
"""Encryption for the RSA package.
Adapted from: https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/
"""

def __init__(self, private_key_path: str = None, public_key_path: str = None) -> None:
Expand Down

0 comments on commit c3b0e74

Please sign in to comment.