In Ballerina, the type of the keys in maps is fixed (string). You can’t use other types as map keys.
Good analogies. However, how is Alice going to verify whether the message really did come from Bob? Mallory can intercept the box Alice sent, put her own message in it, lock it and send it back to Alice.