Encrypting & Decrypting Files — Ruby on Rails

Panos Matsinopoulos
Level Up Coding
Published in
2 min readApr 28, 2024

--

Or, how I encrypted my Terraform state file

Image by DESPOINA MATSINOPOULOU from Pixabay

Introduction

Hello my friends!

Today I am presenting to you an easy way for you to encrypt and decrypt files using Ruby on Rails own utilities.

We know that RoR offers the ability to store secrets encrypted inside the file config/credentials.yml.enc, as it is…

--

--