Sha256: f45d6af60bfa21e8f640cb48ee22f3578ab19a6427e96641018290d4d69e558e
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module Parsel module JSON def self.encrypt(*args) Parsel.print_deprecation_message key, iv, data = Parsel.expand_args(args) Parsel.encrypt(key, iv, ::JSON.dump(data)) end def self.decrypt(*args) Parsel.print_deprecation_message key, iv, data = Parsel.expand_args(args) ::JSON.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-1.0.0 | lib/parsel/json.rb |