You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -222,11 +224,13 @@ class EncryptedString(TypeDecorator[str]):
222
224
Args:
223
225
key (str | bytes | Callable[[], str | bytes] | None): The encryption key. Can be a string, bytes, or callable returning either. Defaults to os.urandom(32).
224
226
backend (Type[EncryptionBackend] | None): The encryption backend class to use. Defaults to FernetBackend.
227
+
length (int | None): The length of the unencrypted string. This is used for documentation and validation purposes only, as encrypted strings will be longer.
225
228
**kwargs (Any | None): Additional arguments passed to the underlying String type.
key (str | bytes | Callable[[], str | bytes] | None): The encryption key. Can be a string, bytes, or callable returning either. Defaults to os.urandom(32).
245
250
backend (Type[EncryptionBackend] | None): The encryption backend class to use. Defaults to FernetBackend.
251
+
length (int | None): The length of the unencrypted string. This is used for documentation and validation purposes only.
246
252
**kwargs (Any | None): Additional arguments passed to the underlying String type.
0 commit comments