mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 21:50:28 +08:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			208 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			208 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package encrypt
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "testing"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func TestMagicKeyEncode(t *testing.T) {
							 | 
						||
| 
								 | 
							
									dst := MagicKeyEncode([]byte("Hello,World"))
							 | 
						||
| 
								 | 
							
									t.Log("dst:", string(dst))
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									src := MagicKeyDecode(dst)
							 | 
						||
| 
								 | 
							
									t.Log("src:", string(src))
							 | 
						||
| 
								 | 
							
								}
							 |