S
shappen
Is there a function to do this ?
with the string parameter,it return the encryption result of the string
?
with the string parameter,it return the encryption result of the string
?
Is there a function to do this ?
with the string parameter,it return the encryption result of the string
Thank you for reply!
In PHP there is a md5() function to do this and I think if there is an
equal function in C.
By the way,is there any better encryption method than MD5??
My better means more secure.
So as you say OTP may be the answer.
How can use it in C?
Could you give me some advice?
You say the following is its main implementation:
void otp(unsigned char *o,
const unsigned char *i,
const unsigned char *k,
size_t len)
{
while(len--)
{
*o++ = *i++ ^ *k++;
}
}
?
You say the following is its main implementation:
void otp(unsigned char *o,
const unsigned char *i,
const unsigned char *k,
size_t len)
{
while(len--)
{
*o++ = *i++ ^ *k++;
}
}
In PHP there is a md5() function to do this and I think if there is an
equal function in C.
Richard Heathfield said:(e-mail address removed) said:
MD5 is not an encryption method. It's a hashing method.
Whether one encryption method is "better" than another depends on what you
mean by "better". Faster? Easier key distro? More secure? ROT-26 is way
faster than AES. It's much easier to solve the key distribution problem for
AES than for OTP. OTP is vastly (infinitely?) more secure than ROT-26.
[email protected] said:Thank you for all replies.
Walter,I am sorry to do this (Please note, other people are not reading
by threading newsreaders, or might
not have received the previous message yet, or the message might have
expired for them. [I've seen expiration times set as low as 4 hours
on some newsservers.] It is therefore best to include enough context
for people to know what you are talking about.
In this particular case, "its" does not have meaning without the
discussion context. The missing referant is that you are discussing
implementation of OTP (One Time Pads).
[You also left out the attribution, so we can't easily tell who
wrote the code you quoted.])
I will be more careful about this.
Thank you !!!
Is there a function to do this ?
with the string parameter,it return the encryption result of the string
?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.