original_string: public function encryptPrivateKey($privateKey, $password)
      {
          try {
              return CryptoVirgilKeyPair::encryptPrivateKey($privateKey, $password);
          } catch (Exception $exception) {
              throw new PrivateKeyEncryptionException($exception->getMessage(), $exception->getCode());
          }
      }
code: public function encryptPrivateKey($privateKey, $password)
      {
          try {
              return CryptoVirgilKeyPair::encryptPrivateKey($privateKey, $password);
          } catch (Exception $exception) {
              throw new PrivateKeyEncryptionException($exception->getMessage(), $exception->getCode());
          }
      }
code_tokens: public function encryptPrivateKey ( $ privateKey , $ password ) { try { return CryptoVirgilKeyPair :: encryptPrivateKey ( $ privateKey , $ password ) ; } catch ( Exception $ exception ) { throw new PrivateKeyEncryptionException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
docstring: Encrypts private key with a password.
  
  @param string $privateKey
  @param string $password
  
  @return string
  
  @throws PrivateKeyEncryptionException
docstring_tokens: Encrypts private key with a password .