Sha256: 217ab559897143f44dbf1fce9927836791e790c7b1aa9eb51778e76f87e1e6e1
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
module Parsel module Marshal def self.encrypt(*args) key, iv, data = Parsel.expand_args(args) Parsel.encrypt(key, iv, ::Marshal.dump(data)) end def self.decrypt(*args) key, iv, data = Parsel.expand_args(args) ::Marshal.load Parsel.decrypt(key, iv, data) rescue Exception false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parsel-0.3.0 | lib/parsel/marshal.rb |