in reply to Re^2: How to hide a number
in thread How to hide a number
flamel
You still have not explained what you want to do with this hidden number and how it is to be got back again. Who are you hiding this number from ? The legitimate user of your code (impossible without a trusted hardware platform) or evil hackers (encrypt number with password only known to user, implement crypto correctly (v.hard) ).
It does look like you want to re-implement some crypto from scratch in your code. This is a bad idea especialy as perl already has good crypto modules. Please see the Schneier book Fletch refers too and if you insist on going ahead read Applied Cryptography by the same author too.
If you do decide to implement your own then go and look at the source code for some of the crypto modules on CPAN although it does sound rather silly to make an error prone re-implementation of something you can pull down for free.
Cheers,
R.
|
|---|