Mis SQL
Mis SQL
----------------
insert into products (CODE, NAME, PRICE, CREATE_DATE)
values ('S001', 'Core Java', 100, current_timestamp() );
Example:
1. Alice wants to send a message to Bob. And Alice wants to make sure that only Bob can read the
message. What should Alice do?
Ans:
Alice has a Pub_Alice, Priv_Alice, and Pub_Bob.
Bob has a Pub_Bob, Priv_Bob, and Pub_Alice.
Alice should use the public key of Bob (Pub_Bob) to encrypt the message.
Pub_Bob(message)
2. In which situation Alice will use the Priv_Alice to encrypt the message? Priv_Alice(message)
Ans:
In the case that Alice want to make sure that only Alice can write/adjust the message.
3. How can Alice be the one who writes the message and only FB can read the message?
Ans:
Alice uses her private key (Priv_Alice) to encrypt a message. Then, she uses the public key Facebook to
encrypt the above encrypted message again.
Pub_FB(Priv_Alice(message))