Alice has a password that she would like to use for decryption. Alice isn't able to store any other information, but she has access to any program/mechanism you choose. How can she create an encryption key for Bob, so Bob will be able to encrypt messages, but won't be able to decrypt them and Alice will be able to decrypt them using password? Following applies:
- Bob is able to provide Alice any data alongside with the encrypted messages.
- Communication of Alice and Bob is already secured. Purpose of this isn't to secure the communication.
What have I tried
First I thought about general RSA and password protected ssh keys. But Alice won't be able to remember private key. But she could provide both pub and priv key to Bob. Bob would be using pub key to encrypt message, sending the priv key alongside each message. Alice would use priv key and password to decrypt the message... questionmark? Im not sure if ssh keys can be used this way. Also it doesn't feel like right tool to use.
I'm not trying to reinvent the wheel. I think such a mechanism has been implemented already, I'm just not aware of its existence (or maybe Im aware of the tool, but do not reallize it can be used this way).