Last active
July 28, 2020 21:02
-
-
Save edsonmsantos/c53be3e44795b03ff15d83e786b6dadb to your computer and use it in GitHub Desktop.
[Codificar string para Base 64]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uses EncdDecd | |
function Encode(const Input: string): AnsiString; | |
var | |
utf8: UTF8String; | |
begin | |
utf8 := UTF8String(Input); | |
Result := EncdDecd.EncodeBase64(PAnsiChar(utf8), Length(utf8)); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment