Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for Base64 (0.21 sec)

  1. src/main/java/jcifs/smb1/util/Base64.java

     */
    
    package jcifs.smb1.util;
    
    /**
     * Utility class for Base64 encoding and decoding operations.
     * Provides methods to convert between binary data and Base64 encoded strings.
     */
    public class Base64 {
    
        /**
         * Private constructor to prevent instantiation of this utility class.
         */
        private Base64() {
            // Utility class - not instantiable
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt

        encodeBase64Lines(encoded.toByteString())
        append("-----END CERTIFICATE-----\n")
      }
    
    internal fun StringBuilder.encodeBase64Lines(data: ByteString) {
      val base64 = data.base64()
      for (i in 0 until base64.length step 64) {
        append(base64, i, minOf(i + 64, base64.length)).append('\n')
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        testEncodingWithSeparators(base64(), "fo", "Zm8=");
        testEncodingWithSeparators(base64(), "foo", "Zm9v");
        testEncodingWithSeparators(base64(), "foob", "Zm9vYg==");
        testEncodingWithSeparators(base64(), "fooba", "Zm9vYmE=");
        testEncodingWithSeparators(base64(), "foobar", "Zm9vYmFy");
      }
    
      @GwtIncompatible // Reader/Writer
      public void testBase64Streaming() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/BaseEncodingTest.java

        testEncodingWithSeparators(base64(), "fo", "Zm8=");
        testEncodingWithSeparators(base64(), "foo", "Zm9v");
        testEncodingWithSeparators(base64(), "foob", "Zm9vYg==");
        testEncodingWithSeparators(base64(), "fooba", "Zm9vYmE=");
        testEncodingWithSeparators(base64(), "foobar", "Zm9vYmFy");
      }
    
      @GwtIncompatible // Reader/Writer
      public void testBase64Streaming() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/FacetResponseTest.java

        public void test_base64_encoding_decoding() {
            // Test that base64 encoding and decoding works correctly
            String originalString = "test field with spaces";
            String encoded = BaseEncoding.base64().encode(originalString.getBytes(StandardCharsets.UTF_8));
            String decoded = new String(BaseEncoding.base64().decode(encoded), StandardCharsets.UTF_8);
    
            assertEquals(originalString, decoded);
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

        /**
         * Downloads a log file by its encoded ID.
         *
         * @param id the Base64 encoded filename of the log file to download
         * @return ActionResponse containing the log file stream
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public ActionResponse download(final String id) {
            final String filename = new String(Base64.getDecoder().decode(id), StandardCharsets.UTF_8).replace("..", "").replaceAll("\\s", "");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        /**
         * Encodes a file path using Base64 URL-safe encoding.
         *
         * @param path the file path to encode
         * @return the Base64 encoded path
         */
        protected String encodePath(final String path) {
            return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8));
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/NtlmSsp.java

            if (msg != null && msg.startsWith("NTLM ")) {
                final byte[] src = Base64.decode(msg.substring(5));
                if (src[8] == 1) {
                    final Type1Message type1 = new Type1Message(src);
                    final Type2Message type2 = new Type2Message(tc, type1, challenge, null);
                    msg = new String(Base64.encode(type2.toByteArray()), "US-ASCII");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/util/Base64Test.java

        @MethodSource("encodeProvider")
        void testEncode(byte[] input, String expected) {
            // Arrange & Act
            String actual = Base64.encode(input);
            // Assert
            assertEquals(expected, actual, "Base64.encode should match expected string");
        }
    
        /**
         * Data provider for Base64 strings and expected decoded byte arrays.
         */
        static Stream<Arguments> decodeProvider() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

    @NullUnmarked
    public class BaseEncodingBenchmark {
      private static final int INPUTS_COUNT = 0x1000;
      private static final int INPUTS_MASK = 0xFFF;
    
      enum EncodingOption {
        BASE64(BaseEncoding.base64()),
        BASE64_URL(BaseEncoding.base64Url()),
        BASE32(BaseEncoding.base32()),
        BASE32_HEX(BaseEncoding.base32Hex()),
        BASE16(BaseEncoding.base16());
    
        final BaseEncoding encoding;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top