finished all features

This commit is contained in:
Lexzach
2024-08-09 17:38:44 -04:00
parent f8c18022ae
commit 092f877fe1
5 changed files with 76 additions and 15 deletions

View File

@@ -39,13 +39,11 @@ func OTPEncrypt(message string, key string) string {
var encryptedmessage []string
for pos, messagenum := range messagesplitint{
if pos != 0 && pos % 5 == 0 {
encryptedmessage = append(encryptedmessage, " ")
}
encryptedmessage = append(encryptedmessage, paddefinitions.NumToCharMap[(messagenum + keysplitint[pos]) % 35])
}
return (strings.Join(encryptedmessage, ""))
}