Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
OpenSSL::Cipher.ciphers
OpenSSL::Cipher.ciphers → array[string...]
ext/openssl/ossl_cipher.c
View on GitHub ↗
static VALUE
ossl_s_ciphers(VALUE self)
{
VALUE ary;
ary = rb_ary_new();
OBJ_NAME_do_all_sorted(OBJ_NAME_TYPE_CIPHER_METH,
add_cipher_name_to_ary,
(void*)ary);
return ary;
}
Returns the names of all available ciphers in an array.