[PD1] cryptoUtils start and protocol tweaks

This commit is contained in:
Tiago Sousa 2024-04-17 19:54:14 +01:00
parent cdaae8fb7e
commit c57c093867
Signed by: tiago
SSH key fingerprint: SHA256:odOD9vln9U7qNe1R8o3UCbE3jkQCkr5/q5mgd5hwua0
4 changed files with 128 additions and 80 deletions

View file

@ -10,6 +10,15 @@ func readMessageContent() string {
fmt.Println("Enter message content (limited to 1000 bytes):")
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
// FIX: make sure this doesnt die
return scanner.Text()
}
func AskUserPassword() string {
fmt.Println("Enter message content (limited to 1000 bytes):")
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
// FIX: make sure this doesnt die
return scanner.Text()
}