Jump to content

Base64 decode data: Difference between revisions

no edit summary
No edit summary
Line 301:
To err is human, but to really foul things up you need a computer.
-- Paul R. Ehrlich</pre>
 
=={{header|Delphi}}==
<lang delphi>program Base64Decoder;
 
{$APPTYPE CONSOLE}
 
uses
System.SysUtils, System.NetEncoding;
 
const
Src = 'VG8gZXJyIGlzIGh1bWFuLCBidXQgdG8gcmVhbGx5IGZvdWwgdGhpbmdzIHVwIHlvdSBuZWVkIGEgY29tcHV0ZXIuCiAgICAtLSBQYXVsIFIuIEVocmxpY2g=';
 
begin
WriteLn(Format('Source string: ' + sLineBreak + '"%s"', [Src]));
WriteLn(Format('Decoded string: ' + sLineBreak + '"%s"', [TNetEncoding.Base64.Decode(Src)]));
 
end.
</lang>
{{out}}
<pre>Source string:
"VG8gZXJyIGlzIGh1bWFuLCBidXQgdG8gcmVhbGx5IGZvdWwgdGhpbmdzIHVwIHlvdSBuZWVkIGEgY29tcHV0ZXIuCiAgICAtLSBQYXVsIFIuIEVocmxpY2g="
Decoded string:
"To err is human, but to really foul things up you need a computer.
-- Paul R. Ehrlich"</pre>
 
=={{header|Factor}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.