method
cipher
v2_2_9 -
Show latest stable
- Class:
OpenSSL::Engine
cipher(p1)public
This returns an OpenSSL::Cipher by name, if it is available in this engine.
A EngineError will be raised if the cipher is unavailable.
e = OpenSSL::Engine.by_id("openssl") => #<OpenSSL::Engine id="openssl" name="Software engine support"> e.cipher("RC4") => #<OpenSSL::Cipher:0x007fc5cacc3048>