How can i get informations from a code
Hello, maybe this is not the place where to ask this question, please bear with me.
alice will give bob a code, and when bob provides me this code(maybe +time, and alice's name), i would like to know if this code was really given to bob by alice.
i thought of some simple stuff like (ax + b)( is math, + is string concat) where "a" is alice's name, x is date and b is a unique number for this code (provided by alice to bob) and then with the date and alice's name, i will do the math to know that this was realy given by alice to bob, and know what is the b ?
may be there is some better way to do this, but the requirements are that the code provided to bob should not be so long (max 10 chars).
Thank you.
1 comment
[ 3.3 ms ] story [ 12.0 ms ] threadUsing public key encryption, alice can have a private key, which she uses to sign the code she gives to bob.
Then anybody can use the public key to check the signature on that code, to very that the owner of the private key (ie. alice) did sign it.
As for "too long", it's relative. For example: