Skip to content

Commit

Permalink
use go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Nov 20, 2020
1 parent 4baf350 commit fc87afb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
16 changes: 9 additions & 7 deletions encrypt/helper/main.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
package helper

/**
* @Author nick
* @Blog http://www.lampnick.com
* @Email [email protected]
*/
import (
"AES-DES-Encrypt-Decrypt/encrypt/aes"
"AES-DES-Encrypt-Decrypt/encrypt/rsa"
"errors"
"math/rand"
"time"

"github.com/lampnick/AES-DES-Encrypt-Decrypt/encrypt/aes"
"github.com/lampnick/AES-DES-Encrypt-Decrypt/encrypt/rsa"
)

/**
* @Author nick
* @Blog http://www.lampnick.com
* @Email [email protected]
*/

type EncryptInfo struct {
EncryptData string
EncryptKey string
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/lampnick/AES-DES-Encrypt-Decrypt

go 1.13
12 changes: 7 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package main

import (
"encoding/json"
"fmt"

"github.com/lampnick/AES-DES-Encrypt-Decrypt/encrypt/helper"
)

/**
* @Author nick
* @Blog http://www.lampnick.com
* @Email [email protected]
*/
import (
"AES-DES-Encrypt-Decrypt/encrypt/helper"
"encoding/json"
"fmt"
)

var privateKey = []byte(`
-----BEGIN RSA PRIVATE KEY-----
Expand Down

0 comments on commit fc87afb

Please sign in to comment.