Garry's Mod Wiki

util.Base64Encode

string util.Base64Encode( string str )

Description

Encodes the specified string to base64.

Arguments

1 string str
String to encode.

Returns

1 string
Base 64 encoded string.

Example

Encodes a string

local encoded = util.Base64Encode( "Base64 Encoding" ) print(encoded)
Output: QmFzZTY0IEVuY29kaW5n

Page Links


Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 6