Skip to content

golang module for wrapping both rawstd and std base64 encoded content so both types can be read by a base64.RawStdEncoding decoder.

License

Notifications You must be signed in to change notification settings

rorycl/base64toraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base64toraw

v0.0.1 : 25 January 2025

Details

package base64translator is a very simple translator for taking either base64.StdEncoded data to base64.RawStdEncoded to allow both to be read by base64.RawStdEncoding decoding.

This is best used in cases where you aren't sure whether you will be receiving base64.StdEncoded or base64.RawStdEncoded data.

Usage example:

b64 := NewBase64ToRaw(bytes.NewReader(encodedBytes))
b, err := io.ReadAll(base64.NewDecoder(base64.RawStdEncoding, b64))

Licence

This project is licensed under the MIT Licence.

About

golang module for wrapping both rawstd and std base64 encoded content so both types can be read by a base64.RawStdEncoding decoder.

Topics

Resources

License

Stars

Watchers

Forks

Languages