Cross-posted here -> Hybrid password - C++ Forum