jwt/ruby-jwe

View on GitHub
lib/jwe/alg/dir.rb

Summary

Maintainability
A
0 mins
Test Coverage
module JWE
  module Alg
    # Direct (no-op) key encryption algorithm.
    class Dir
      attr_accessor :key

      def initialize(key)
        self.key = key
      end

      def encrypt(_cek)
        ''
      end

      def decrypt(_encrypted_cek)
        key
      end
    end
  end
end