QuackatronHQ / Gigarepo

Deprecated way of initializing OpenSSL::Cipher and OpenSSL::Digest RB-LI1083
Anti-pattern
Major
1 occurrence in this check
Use OpenSSL::Cipher.new('aes-128-gcm') instead of OpenSSL::Cipher::AES.new(128, :GCM).
49end
50
51# Raises "Deprecated way of initializing OpenSSL::Cipher and OpenSSL::Digest"
52OpenSSL::Cipher::AES.new(128, :GCM)53
54# Raises "put empty method definitions on a single line"
55# Also raises "multiple methods with same name in the same scope" as we have a