るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.136秒)
トップページ > 種類:インスタンスメソッド[x] > バージョン:2.5.0[x] > クエリ:openssl[x] > クエリ:encrypt[x] > クラス:OpenSSL::PKey::RSA[x]

別のキーワード

  1. openssl new
  2. openssl digest
  3. openssl to_der
  4. openssl hexdigest
  5. openssl to_s

ライブラリ

キーワード

検索結果

OpenSSL::PKey::RSA#public_encrypt(str, mode = OpenSSL::PKey::RSA::PKCS1_PADDING) -> String (51703.0)

文字列 str を公開鍵で暗号化します。

...利用可能です。
* OpenSSL::PKey::RSA::PKCS1_PADDING
* OpenSSL::PKey::RSA::SSLV23_PADDING
* OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING
* OpenSSL::PKey::RSA::NO_PADDING

@param str 暗号化する文字列
@param mode パディングモード
@raise OpenSSL::PKey::RSAError 暗号化に失敗し...

OpenSSL::PKey::RSA#private_encrypt(str, mode = OpenSSL::PKey::RSA::PKCS1_PADDING) -> String (51667.0)

文字列 str を秘密鍵で暗号化します。

...指定します。以下のいずれかが利用可能です。
* OpenSSL::PKey::RSA::PKCS1_PADDING
* OpenSSL::PKey::RSA::NO_PADDING

@param str 暗号化する文字列
@param mode パディングモード
@raise OpenSSL::PKey::RSAError 暗号化に失敗した場合に発生します。...