Sha256: 0d4141bd51bb35613017df2ff35cb001de315b16b3bb401b961e4cefe1f02eb0
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
module TwitterAuth module Cryptify class Error < StandardError; end mattr_accessor :crypt_password @@crypt_password = '--TwitterAuth-!##@--2ef' def self.encrypt(data, salt) EzCrypto::Key.encrypt_with_password(crypt_password, salt, data) end def self.decrypt(encrypted_data, salt) EzCrypto::Key.decrypt_with_password(crypt_password, salt, encrypted_data) end def self.generate_salt ActiveSupport::SecureRandom.hex(4) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mbleigh-twitter-auth-0.0.2 | lib/twitter_auth/cryptify.rb |