Base64 encode data: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added the REXX language. -- ~~~~) |
(→{{header|REXX}}: added a wikipedia reference. -- ~~~~) |
||
Line 93: | Line 93: | ||
return $||copies('=', 2*(L//6==2)+(L//6==4)) /*maybe append equal signs*/</lang> |
return $||copies('=', 2*(L//6==2)+(L//6==4)) /*maybe append equal signs*/</lang> |
||
For the various outputs, serveral input texts from the |
For the various outputs, serveral input texts from the [http://en.wikipedia.org/wiki/Base64] {''wiki/Base64''} were used to demonstrate how padding works. |
||
<br><br> |
<br><br> |
||
'''output''' when using the input of: <tt> , any carnal pleasure. </tt> |
'''output''' when using the input of: <tt> , any carnal pleasure. </tt> |