i want to encrypt a string, i already used rsa for stringbuffer encryption, but now i need a method which creates no '\x00' in the output buffer, so that i can terminate the encrypted result with a '\x00'. Do you know any method to do this.
Joined: 13 Aug 2007 21:44 Posts: 4068 Location: http://aluigi.org
it's very simple, you need only to "encode" your sequence of bytes with an algorithm which uses a particular charset. the 2 most simple and diffused encoding are: - hexadecimal: if you have "\x01\x00\x34" it will become "010034" - base64: if you have "\x01\x00\x34" it will become "AQA0"
Joined: 13 Aug 2007 21:44 Posts: 4068 Location: http://aluigi.org
I have read about yenc just some days ago when I implemented it in my QuickBMS tool. seems that it's a loved/hated algorithm, indeed it's often not suggested (as far as I have read). technically instead I can only say that it's really a joke to implement because it's very very simple :)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum