File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ function TRALCripto.Encrypt(AValue: TStream): StringRAL;
118118 vStream := EncryptAsStream(AValue);
119119 vStream.Position := 0 ;
120120
121- Result := TRALBase64.Encode (vStream);
121+ Result := StreamToString (vStream);
122122 finally
123123 FreeAndNil(vStream);
124124 end ;
Original file line number Diff line number Diff line change @@ -129,10 +129,7 @@ function StringToStream(const AStr: StringRAL): TStream;
129129 vBytes : TBytes;
130130begin
131131 vBytes := StringToBytes(AStr);
132-
133- Result := TMemoryStream.Create;
134- Result.Write(vBytes[0 ], Length(vBytes));
135- Result.Position := 0 ;
132+ Result := BytesToStream(vBytes)
136133end ;
137134
138135function StringToStreamUTF8 (const AStr: StringRAL): TStream;
You can’t perform that action at this time.
0 commit comments