Skip to content

Instantly share code, notes, and snippets.

@darui00kara
Created June 27, 2015 08:40
Show Gist options
  • Save darui00kara/86d37589d760262be163 to your computer and use it in GitHub Desktop.
Save darui00kara/86d37589d760262be163 to your computer and use it in GitHub Desktop.
defmodule SafetyboxSample do
def encrypt(password) do
Safetybox.encrypt(password)
end
def authentication(_userid, _user_name, password) do
encrypt_password = "" # DBからユーザデータを取得する処理が入る
Safetybox.is_decrypted(password, encrypt_password)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment