module Gmaps::Support::FileEncryptor

Defined in:

gmaps/support/file_encryptor.cr

Constant Summary

ENCRYPT_ENV = "GMAPS_ENCRYPTION_KEY"
FILE_PATH = "./.encryption_key"

Class Method Summary

Class Method Detail

def self.encryption_key(file = FILE_PATH) #

[View source]
def self.read(filename : String, encryption_key = self.encryption_key) #

[View source]
def self.read_as_string(filename, encryption_key = self.encryption_key) #

[View source]
def self.write(filename : String, body : String | Bytes, encryption_key = self.encryption_key) #

[View source]