base64: make encode and decode public
							parent
							
								
									c1400f725f
								
							
						
					
					
						commit
						142d3deab4
					
				|  | @ -51,7 +51,7 @@ const ( | ||||||
| 	EncodingTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | 	EncodingTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| fn encode(data string) string { | pub fn encode(data string) string { | ||||||
| 	input_length := data.len | 	input_length := data.len | ||||||
| 	output_length := 4 * ((input_length + 2) / 3) | 	output_length := 4 * ((input_length + 2) / 3) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue