Hello,
 
I have encountered a problem using xmlsec tool.
I have a rar file that I wish to encrypt, send and on the other side decrypt.
I'm using xmlsec tool with these lines:
 
xmlsec encrypt --deskey deskey.bin  --binary-data testfile.rar --output enc_testfile.rar encrypt1-tmpl.xml
xmlsec decrypt --deskey deskey.bin --output dec_testfile.rar enc_testfile.rar
 
Decrypted file is corrupted.
The original is smaller (in bytes) and not the same size as decrypted!
 
What is wrong?
 
 
Regards,
Daniel
 
<?xml version="1.0"?>
<!-- 
XML Security Library example: Simple encryption template file for encrypt1 example. 
-->
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#";>
	<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
	<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#";>
		<KeyName>deskey.bin</KeyName>
	</KeyInfo>
	<CipherData>
		<CipherValue/>
	</CipherData>
</EncryptedData>

Attachment: deskey.bin
Description: Binary data


Attachment: TestFile.rar
Description: Binary data

_______________________________________________
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to