1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update guide

This commit is contained in:
Jorge Manrubia 2021-03-11 16:14:36 +01:00
parent 1163154a0b
commit 212543deb5

View file

@ -15,7 +15,7 @@ After reading this guide you will know:
--------------------------------------------------------------------------------
Active Record supports application-level encryption. To use by declaring which attributes should be encrypted and seamlessly encrypting and decrypting them when necessary. The encryption layer is placed between the database and the application. The application will access unencrypted data but the database will store it encrypted.
Active Record supports application-level encryption. It works by declaring which attributes should be encrypted and seamlessly encrypting and decrypting them when necessary. The encryption layer is placed between the database and the application. The application will access unencrypted data but the database will store it encrypted.
## Basic usage
@ -86,7 +86,7 @@ NOTE: In non-deterministic mode, encryption is done using AES-GCM with a 256-bit
You can encrypt action text attributes by passing `encrypted: true` in their declaration.
```
```ruby
class Message < ApplicationRecord
has_rich_text :content, encrypted: true
end
@ -132,7 +132,7 @@ You can use the option `:downcase` when declaring the encrypted attribute. This
```ruby
class Person
encrypts :email_address, deterministic: true, downcase: true
encrypts :email_address, deterministic: true, downcase: true
end
```