Ruby OpenSSL Cipher -


when instantiate cipher aes gcm so, works:

openssl::cipher.new('aes-256-gcm') 

however, unsupported cipher error when following (the way mentioned in docs):

openssl::cipher::aes.new(256, :gcm) 

is there difference between 2 (i.e. former equivalent latter)?

>> openssl::openssl_version => "openssl 1.0.1e 11 feb 2013" 


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -