/file-encrypter

Streaming file encrypter in Ruby. Built using RbNaCl.

Primary LanguageRubyMIT LicenseMIT

A streaming file encrypter in Ruby. Built on RbNaCl. WIP.

File Encrypter uses symmetric encryption (RbNaCl's SimpleBox by default), processing binary files in chunks to avoid loading large files into memory during encryption. FileEncrypter::Client reads the input file and encrypts each chunk (in bytes), the encrypted chunks to a comma delimited base64 file on disk.

Decryption splits the ciphertext by base64 segment, decodes and decrypts ciphertext, and writes a plaintext file.