Create a new bidirectional map bm and insert the pair (42, "forty-two")
import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap;
BiMap<Integer, String> bm = HashBiMap.create(); bm.put(42, "forty-two");
import bidict
bm = bidict.bidict({42: 'forty-two'})
No security, no password. Other people might choose the same nickname.