Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HEX math

Status
Not open for further replies.

whiteKrane

Programmer
Apr 11, 2002
3
US
How do you add two hex numbers directly without coverting them to decimal first? Also how do you use the bit shifts &quot;<<&quot; and &quot;>>&quot; on hex numbers directly?
 
Unless there is a perl module for it, I don't think you can. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
read on perl-rsa


be aware not for rookie
im using html js css xml ldl java vb c cpp dx gl etc..
and still veryvery lost in all this....
let me guess u what to make an unique crypto system

well good luck
i know i've done one (lowlevel)

if im completely out of the subject i apologize
im not sure what u mean by HEX here....
 
Thanks for that info, helping. I'll have to take a look at it. I tried months ago to implement a couple of different crypto algorithms in perl, and kept running up against the fact that perl doesn't handle blocks of data well when doing bit manipulations. I put it on the back burner until later and haven't gotten back to it yet. That reference may help me out. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
on this link i gave to u
they is alot of site of other encrytion authors
some are more than 10000 programer and mathemathician

some day my friend we will be on the list too
wink someone knowledge ends were
someone else knowledge starts
 
I looked at a LOT of sites about encryption, but most of what I got was theory, abstract mathematics, and C code. I couldn't find anything really secure that was written in pure perl, and my grasp of the type of mathematics they used isn't enough to allow me to write the perl code from scratch (and I've taken college-level calculus). I even tried converting the C code to perl, but that's where I ran into problems doing major bit-level manipulations on blocks of data.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
see my post on PERLCC
does the line
s/%([a-fA-F0-9][a-fA-F0-9])/pack(&quot;H&quot;, hex($1))/eg;
tells u somethings ....
here is another good link

mathematical knowlege is the key
and grades means nothings only mental disease
wink someone knowledge ends were
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top