code: public String getKeyAsString(Key key) {
          Objects.requireNonNull(key, Required.KEY.toString());
          
          return encodeBase64(key.getEncoded());
      }
docs: Convert a Key to string encoded as Base64
  
  @param key The key (private or public)
  @return A string representation of the key