Sha256: c4d97413014022dfccf6306f7ba228337e892bfffedcef264d97c954c52ead8c

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

module Parsel
  module Marshal
    def self.encrypt(key, data)
      Parsel.encrypt(key, ::Marshal.dump(data))
    end

    def self.decrypt(key, data)
      ::Marshal.load Parsel.decrypt(key, data)
    rescue Exception
      false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parsel-0.2.0 lib/parsel/marshal.rb