Re: Rather Newb-ish Question
- From: "ncf" <nothingcanfulfill@xxxxxxxxx>
- Date: 12 Dec 2005 11:58:22 -0800
Paul Rubin wrote:
> "ncf" <nothingcanfulfill@xxxxxxxxx> writes:
> > Assuming that "c = p and k", how would the reciever decipher p from c,
> > knowing k?
>
> Normally you'd use "c = p xor k", not "p and k" ("xor" is short for
> "exclusive or"). That's because xor is reversible, unlike "and" and
> "or".
>
> Alternatively you could use addition: "c = p + k", which you can
> reverse with subtraction. Xor is just addition in a special number
> system where addition and subtraction are the same.
Sadly, the xor and basic addition/subtraction/multiplication/division
is what I was trying to get away from. I've read and have a general
understanding of the concepts put forth in _Applied Cryptography_ and
_Practical Cryptography_, however, my knowledge in entirity is still
lacking as to how to pull off any more advanced bit-wise operations
than xor in en/de-cryption.
However, you noted that "and" and "or" are not reverseable, so I may
just be wrong in my recalling that they were used to create c from p in
more advanced algorithms.
> > Also, are there any books that are very practical for teaching bit-wise
> > math and the like?
>
> Hmm, that's a very basic topic in programming. Anyway, try here:
>
> http://en.wikipedia.org/wiki/Binary_arithmetic
>
> You might also like "The Code Book", by Simon Singh. It's a general
> intro to cryptography, mostly not too technical, but covers methods
> from ancient times to the present.
Thanks for the pointer, although basic aspects of it were not so
useful, it was very gladdening to finally see the electronic method of
addition and such operations.
.
- References:
- Rather Newb-ish Question
- From: ncf
- Re: Rather Newb-ish Question
- From: Paul Rubin
- Rather Newb-ish Question
- Prev by Date: Re: Defeating keyloggers with encrypted one time passwords (a patent spoiler?)
- Next by Date: Re: PGP Lame question
- Previous by thread: Re: Rather Newb-ish Question
- Next by thread: Re: Rather Newb-ish Question
- Index(es):
Relevant Pages
|
|