Skip to main content
Decodes a Base64 string back to the original bytes.
Reverses crypt.base64encode. Give it valid Base64 and you get back exactly the original data, byte for byte.

Parameters

Returns

string - the decoded bytes.

Aliases

  • base64.decode
  • base64_decode
  • base64decode
  • crypt.base64.decode
  • crypt.base64_decode

Example

Read the cached value written by crypt.base64encode and decode it back.
Useful when exchanging configuration or network data.