Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for decodeMask64 (0.2 sec)

  1. src/crypto/rsa/pkcs1v15_test.go

    	"crypto"
    	"crypto/rand"
    	. "crypto/rsa"
    	"crypto/sha1"
    	"crypto/sha256"
    	"crypto/x509"
    	"encoding/base64"
    	"encoding/hex"
    	"encoding/pem"
    	"io"
    	"testing"
    	"testing/quick"
    )
    
    func decodeBase64(in string) []byte {
    	out := make([]byte, base64.StdEncoding.DecodedLen(len(in)))
    	n, err := base64.StdEncoding.Decode(out, []byte(in))
    	if err != nil {
    		return nil
    	}
    	return out[0:n]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 00:16:30 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import okhttp3.CertificatePinner.Companion.sha1Hash
    import okhttp3.CertificatePinner.Pin
    import okhttp3.tls.HeldCertificate
    import okio.ByteString.Companion.decodeBase64
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Assertions.assertFalse
    import org.junit.jupiter.api.Assertions.assertTrue
    import org.junit.jupiter.api.Test
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

        String code = requestUrl.queryParameter("code");
        String stateString = requestUrl.queryParameter("state");
        ByteString state = stateString != null ? ByteString.decodeBase64(stateString) : null;
    
        Listener listener;
        synchronized (this) {
          listener = listeners.get(state);
        }
    
        if (code == null || listener == null) {
          return new MockResponse()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedImplementationIntegrationTest.groovy

                                if (value == null) {
                                    return false;
                                }
                                try {
                                    byte[] bytes = Base64.decodeBase64(value);
                                    reader.readFrom(new ByteArrayInputStream(bytes));
                                    return true;
                                } catch (IOException ex) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 20 12:09:58 UTC 2022
    - 6.6K bytes
    - Viewed (0)
Back to top