Skip to content

Latest commit

 

History

History
executable file
·
23 lines (13 loc) · 498 Bytes

README.md

File metadata and controls

executable file
·
23 lines (13 loc) · 498 Bytes

Gem For Password Encryption using Bcrypt

Step 1

gem install vecrypt

step 2

require "vecrypt"

Step 3

Encrypt password

password = VeEncrypt.new('your password')

salt = password.encrypt[:salt]  #salt is a key
hash_password = password.encrypt[:password]  #password is a key

Decrypt Password

password_check = VeDecrypt.new('your password', salt , hash_password)
password_check.decrypt # it return true or false