Adjust some Go related things
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Go/dotp
|
||||
@@ -1,13 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
otpdecrypt "dotp/otp_decrypt"
|
||||
otpencrypt "dotp/otp_encrypt"
|
||||
otpgenerate "dotp/otp_generate"
|
||||
"flag"
|
||||
"fmt"
|
||||
"math"
|
||||
"strings"
|
||||
"one-time-pad-utils/otp_generate"
|
||||
"one-time-pad-utils/otp_encrypt"
|
||||
"one-time-pad-utils/otp_decrypt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
package otpdecrypt
|
||||
|
||||
import (
|
||||
paddefinitions "dotp/pad_definitions"
|
||||
"strings"
|
||||
"one-time-pad-utils/pad_definitions"
|
||||
)
|
||||
|
||||
func OTPDecrypt(message string, key string) string {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package otpencrypt
|
||||
|
||||
import (
|
||||
paddefinitions "dotp/pad_definitions"
|
||||
"strings"
|
||||
"one-time-pad-utils/pad_definitions"
|
||||
)
|
||||
|
||||
func OTPEncrypt(message string, key string) string {
|
||||
|
||||
@@ -4,11 +4,10 @@ package otpgenerate
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
paddefinitions "dotp/pad_definitions"
|
||||
"math/big"
|
||||
"one-time-pad-utils/pad_definitions"
|
||||
)
|
||||
|
||||
|
||||
func GenerateOTP(chunks int) string {
|
||||
count := 1
|
||||
otpstring := ""
|
||||
|
||||
Reference in New Issue
Block a user