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
|
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.
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 := ""
|
||||||
|
|||||||
Reference in New Issue
Block a user