Home > Back-end >  How BASE64Encoder coding
How BASE64Encoder coding

Time:09-18

I am a beginner, just learn the example code is as follows:
String STR="I Love You";
The MessageDigest digest=new MessageDigest (" md5 ");
Byte [] buf=digest. Digest (STR) getbyte ());
BASE64Encoder encoder=new BASE64Encoder ();
String str2=encoder. The encoder (buf);
System.out.println(str2);

CodePudding user response:

DELPHI:

 
USES NetEncoding;

Var
Str: String;
The Begin
Str:='Hello Delphi;
Showmessage (TNetEncoding Base64 Encode (Str));
End;

CodePudding user response:

Support the building of a code,,,,,,,
  • Related