Jump to content

<add "1" & "0" in the end message>


dana rockets

Recommended Posts

hello please help me how to make append the bit '1' to the message i.e. by adding 0x80 if characters are 8 bits.

append 0 ≤ k < 512 bits '0', thus the resulting message length (in bits) is congruent to 448 (mod 512)
append ml, in a 64-bit big-endian integer. So now the message length is a multiple of 512 bits.in PHP. please help me :Sad:
Link to comment
Share on other sites

Define "message". Is this a string, an array of integers or something else?

 

What do you mean when you say "append"?

Do you mean to add a byte onto the end of the message or do you mean to manipulate the last byte of the message?

Or by "append" do you mean to put the byte at the beginning of the message?

 

What code do you have? Your code will probably explain your data structure more clearly.

 

To start off, I hope you're familiar with PHP's bitwise operators.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...