attr_encrypted gem を使えば、データベースのテーブルの指定したカラムを暗号化できます。次のような特徴があります。
- 通常の処理はプログラムから暗号化カラムを意識せずに書けます
- ActiveRecord の find_by_, scoped_by_ メソッドも暗号化カラムを意識せずに使えます
- 様々な暗号化方式を選択できます
#!/bin/bash -l | |
# A git hook script to find and fix trailing whitespace | |
# in your commits. Bypass it with the --no-verify option | |
# to git-commit | |
# | |
.git/hooks/pre-commit-master-no-no | |
if [[ $? == 1 ]] | |
then |