Encrypt.base64_encrypt

securefile.Encrypt.base64_encrypt(self, commit=False)

Base64 encoding schemes are commonly used when there is a need to encode binary data that needs be stored and transferred over media that are designed to deal with textual data. This is to ensure that the data remains intact without modification during transport.

Uses:
Encrypt a plain text into cipher text using b64encode.

Example:

from securefile import Encrypt
enc = Encrypt('list_count.txt', delimiter=',')
enc.open()
enc.base64_encrypt()
enc.close()
Parameters:commit=False (bool) – Save the change or not.
Returns:Encrypted Message or Cipher Text.
Raises:None