Whatever message this page gives is out now! Go check it out!
ToBase64(strOrBin [, encoding])| Parameter | Description |
strOrBin | A string, the name of a string, or a binary object. |
encoding | For a string, defines how characters are represented in a byte array. The following list includes commonly used values:
|
<cfscript>
myid="johndoe"
mypwd="john@123"
myEncodedPwd=ToBase64(myid & ":" & mypwd)
writeOutput(myEncodedPwd)
</cfscript>