Library base64

Base64 encoding and decoding. Follows RFC 4648.

Author:

Copyright © The MIT License (MIT); Copyright (c) 2016 Patrick Joseph Donnelly ([email protected])

Source: https://svn.nmap.org/nmap/nselib/base64.lua

Functions

dec (e)

Decodes Base64-encoded data.

enc (p)

Encodes a string to Base64.

Functions

dec (e)

Decodes Base64-encoded data.

Parameters

e
Base64 encoded data.

Return value:

Decoded data.
enc (p)

Encodes a string to Base64.

Parameters

p
Data to be encoded.

Return value:

Base64-encoded string.