Created
October 26, 2022 09:34
-
-
Save MySohoWiki/c54eec1ead55ab791c054c348ee6cc82 to your computer and use it in GitHub Desktop.
Create base64
This file contains 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
function base64(user, pass, sn:string): string; | |
begin | |
result:= 'Basic '+ Prg.QueryValues('Select x.A from' | |
+' (SELECT CAST(:0 as varbinary(max)) FOR XML PATH(''''), BINARY BASE64) x(A)', user+':'+pass+'#'+sn); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment