Adjust some Go related things

This commit is contained in:
2025-10-29 16:22:55 -04:00
parent 9563ad252d
commit b8a4839196
8 changed files with 43 additions and 43 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
Go/dotp

View File

@@ -1,3 +1,3 @@
module one-time-pad-utils module dotp
go 1.19 go 1.19

View File

@@ -1,13 +1,13 @@
package main package main
import ( import (
"fmt" otpdecrypt "dotp/otp_decrypt"
otpencrypt "dotp/otp_encrypt"
otpgenerate "dotp/otp_generate"
"flag" "flag"
"fmt"
"math" "math"
"strings" "strings"
"one-time-pad-utils/otp_generate"
"one-time-pad-utils/otp_encrypt"
"one-time-pad-utils/otp_decrypt"
) )
func main() { func main() {

Binary file not shown.

View File

@@ -1,8 +1,8 @@
package otpdecrypt package otpdecrypt
import ( import (
paddefinitions "dotp/pad_definitions"
"strings" "strings"
"one-time-pad-utils/pad_definitions"
) )
func OTPDecrypt(message string, key string) string { func OTPDecrypt(message string, key string) string {

View File

@@ -1,8 +1,8 @@
package otpencrypt package otpencrypt
import ( import (
paddefinitions "dotp/pad_definitions"
"strings" "strings"
"one-time-pad-utils/pad_definitions"
) )
func OTPEncrypt(message string, key string) string { func OTPEncrypt(message string, key string) string {

View File

@@ -4,11 +4,10 @@ package otpgenerate
import ( import (
"crypto/rand" "crypto/rand"
paddefinitions "dotp/pad_definitions"
"math/big" "math/big"
"one-time-pad-utils/pad_definitions"
) )
func GenerateOTP(chunks int) string { func GenerateOTP(chunks int) string {
count := 1 count := 1
otpstring := "" otpstring := ""