Ok so last night I was thinking... if in encryption we use random integers.. won't it be safer?
I'm just going to show a simple thing.. just so people can understand..so:
Let's encrypt:
A -> (ASCII*66)+random number
I know what you are thinking.. is it's random.. it's useless, not an encryption.. NO keep on reading....
So let's transform that into numbers
(65*66)+125=4415
Now what if we store that random number, 125, into the 4415 it's self for example inserting in the 1st,3rd and last digits, like this:
14
5415
2
The bold numbers will be the stored random number I know it's 1,5,2 and then we swap the 2nd with the 3rd to bring it back to 125
And then we just reverse the algorithm
4415-125 = 4290/66 = 65->A
Of course we can make it more secure by for example adding a fixed number to the random number and store it... there are many.. many methods..
But what I mean is that in this way every encrypted string will be unique and it will have endless possibilities because for example A can be 4415 or maybe it can be 4790 (if the random number is 500) and of course we just insert the random number. so the same string.. will be different each time.
What do you think? Is this practical? Are there any algorithms that already use this? Is this safer?
Thanks for your comments.