code: public String getAlgorithm()
      {
          if (cipher == null)
          {
              return null;
          }
  
          String transformation = cipher.getAlgorithm();
  
          if (transformation == null)
          {
              return null;
          }
  
          // Separator position.
          int pos = transformation.indexOf('/');
  
          if (pos < 0)
          {
              return transformation;
          }
  
          return transformation.substring(0, pos);
      }
docs: Get the cipher algorithm name.
  
  <p>
  If the internal cipher is {@code null}, {@code null} is returned.
  Otherwise, the algorithm part of the cipher's transformation is
  returned.
  </p>
  
  @return
  The cipher algorithm name.