diff --git a/docs/utils/base64.md b/docs/utils/base64.md index 204910ef74..dd363944c8 100644 --- a/docs/utils/base64.md +++ b/docs/utils/base64.md @@ -9,7 +9,7 @@ Library to encode strings in Base64. -## Functions +## Encoding / Decoding ### encode(bytes,bool,bool) diff --git a/src/utils/Base64.sol b/src/utils/Base64.sol index 125f416d62..357add0cd8 100644 --- a/src/utils/Base64.sol +++ b/src/utils/Base64.sol @@ -6,6 +6,10 @@ pragma solidity ^0.8.4; /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol) /// @author Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos - . library Base64 { + /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/ + /* ENCODING / DECODING */ + /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ + /// @dev Encodes `data` using the base64 encoding described in RFC 4648. /// See: https://datatracker.ietf.org/doc/html/rfc4648 /// @param fileSafe Whether to replace '+' with '-' and '/' with '_'.