Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestEncryptDecrypt (0.07 sec)

  1. internal/config/crypto_test.go

    		Context: nil,
    	},
    	{
    		Data:    []byte{1},
    		Context: kms.Context{"key": "value"},
    	},
    	{
    		Data:    make([]byte, 1<<20),
    		Context: kms.Context{"key": "value", "a": "b"},
    	},
    }
    
    func TestEncryptDecrypt(t *testing.T) {
    	key, err := hex.DecodeString("ddedadb867afa3f73bd33c25499a723ed7f9f51172ee7b1b679e08dc795debcc")
    	if err != nil {
    		t.Fatalf("Failed to decode master key: %v", err)
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SecureCredentialStorageTest.java

                    // Ignore cleanup exceptions
                }
            }
            if (masterPassword != null) {
                Arrays.fill(masterPassword, '\0');
            }
        }
    
        @Test
        public void testEncryptDecrypt() throws Exception {
            char[] plaintext = "SecretPassword123".toCharArray();
    
            // Encrypt
            byte[] encrypted = storage.encryptCredentials(plaintext);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top