You are not logged in.
Pages: 1
input string data:"mORMot is awesome!", password is "123"
the result AESECB with pkcs5padding hex result should be :
"1d35c8513d106079e66c1f13a0e57eb5d96f97231f345b07bd42ae6d9dd02694"
is there some Decrypt wrapper function like :
function DecryptAesEcbFromHexString(const HexStr,Password:RawUtf8):RawUTF8;
or Encrpyt string to Hex string like:
function AesEcbEncryptAsHex(const Str,Password:RawUtf8):RawUTF8;
can u show some pieces of code please?
thank you very much .
Offline
How about SimpleEncrypt?
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
var
ret:rawbytestring;
display:rawutf8;
begin
aes:=TAESECB.Create('123',128);
try
ret :=aes.EncryptPKCS7('mORMot is awesome!');
display :=BinToHex(ret);
finally
aes.free;
end;
end;
here the display result is 76D7EC0CD8E8EACA15F8214126A62D3A7C503EB0820B52233986FF917554669C
it is wrong.
when use 128 KeySize , the result should be 1d35c8513d106079e66c1f13a0e57eb5d96f97231f345b07bd42ae6d9dd02694
Offline
i know that now, the key also should uses some digest method to generate
Offline
var ret:rawbytestring; display:rawutf8; begin aes:=TAESECB.Create('123',128); try ret :=aes.EncryptPKCS7('mORMot is awesome!'); display :=BinToHex(ret); finally aes.free; end; end;
here the display result is 76D7EC0CD8E8EACA15F8214126A62D3A7C503EB0820B52233986FF917554669C
it is wrong.
when use 128 KeySize , the result should be 1d35c8513d106079e66c1f13a0e57eb5d96f97231f345b07bd42ae6d9dd02694
How to generate the key in this case? Many thanks!
Offline
Hola buen día.
Estoy intentando enviar una imagen usando
TWinHTTP.Post(Url, data, '', true, Nil);
pero no entiendo como cargar una imagen al parámetro data.
Si alguien me podría indicar como hacerlo.
Con TNetHTTPClient lo he realizado usando TMultipartFormData, pero me gustaría usar mORMot.
Gracias por su ayuda.
Offline
Pages: 1