Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. void EncryptFileNames ( const boost::filesystem::path& p, const std::string& pw );
  2.  
  3. int main ( int argc, char **argv ) // No checking
  4. {
  5. // Call with encrypt.exe c:tmp pässwörd
  6.  
  7. boost::nowide::args a ( argc, argv ); // Fix arguments - make them UTF-8
  8.  
  9. boost::filesystem::path p ( argv [ 1 ] );
  10.  
  11. EncryptFileNames ( p, boost::locale::normalize ( argv [ 2 ], boost::locale::norm_nfc, std::locale ( ) ) );
  12.  
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement