updated code to new url
This commit is contained in:
1 parent
8d26f70c3a
commit
bf7f911e79
18 files changed
+25
-25
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
*cover.out
|
*cover.out
|
||||||
/ecrypto
|
/filou
|
||||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||||
*.o
|
*.o
|
||||||
*.a
|
*.a
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"PackageVersion": "0.0.1",
|
"PackageVersion": "0.0.1",
|
||||||
"PrereleaseInfo": "ecrypto",
|
"PrereleaseInfo": "snapshot",
|
||||||
"ConfigVersion": "0.9",
|
"ConfigVersion": "0.9",
|
||||||
"Arch": "386,amd64",
|
"Arch": "386,amd64",
|
||||||
"Os": "windows,linux,darwin",
|
"Os": "windows,linux,darwin",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
# Filou
|
# Filou
|
||||||
> cryptogra **phy** | **loo** phole
|
> cryptogra**phy** (no) **loo** phole
|
||||||
|
|
||||||
|
|
||||||
Filou is in devlopment. It is not yet a super hyper cool program but
|
Filou is in devlopment. It is not yet a super hyper cool program but
|
||||||
@@ -8,8 +8,8 @@ we are going there.
|
|||||||
|
|
||||||
## the name
|
## the name
|
||||||
|
|
||||||
*Filou* was my brother nickname. He died the 9th octobre 2014. This program is
|
*Filou* is my brother, Charles Philippe Amyot, child nickname. He died the 9th
|
||||||
dedicated to his memory.
|
octobre 2014. This program is dedicated to his memory.
|
||||||
|
|
||||||
## Use case
|
## Use case
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ Note that any private key are a public key.
|
|||||||
|
|
||||||
### cypher format
|
### cypher format
|
||||||
|
|
||||||
We use the `.cyp` file extension for the encrypted file. A .cyp is nothing
|
We use the `.filou` file extension for the encrypted file. A .filou is nothing
|
||||||
else than a zip file containing the following shit.
|
else than a zip file containing the following shit.
|
||||||
|
|
||||||
1. a `data.encrypted` containing the encrypted data
|
1. a `data.encrypted` containing the encrypted data
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"crypto/aes"
|
"crypto/aes"
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
. "github.com/didiercrunch/ecrypto/helper"
|
. "github.com/didiercrunch/filou/helper"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"crypto/sha512"
|
"crypto/sha512"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/didiercrunch/ecrypto/helper"
|
"github.com/didiercrunch/filou/helper"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/didiercrunch/ecrypto/helper"
|
"github.com/didiercrunch/filou/helper"
|
||||||
"io"
|
"io"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/didiercrunch/ecrypto/keys"
|
"github.com/didiercrunch/filou/keys"
|
||||||
"github.com/didiercrunch/ecrypto/shared"
|
"github.com/didiercrunch/filou/shared"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package keygenerator
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/didiercrunch/ecrypto/keys"
|
"github.com/didiercrunch/filou/keys"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/didiercrunch/ecrypto/shared"
|
"github.com/didiercrunch/filou/shared"
|
||||||
"math/big"
|
"math/big"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ package keys
|
|||||||
import (
|
import (
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
. "github.com/didiercrunch/ecrypto/helper"
|
. "github.com/didiercrunch/filou/helper"
|
||||||
"math/big"
|
"math/big"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
"github.com/didiercrunch/ecrypto/keygenerator"
|
"github.com/didiercrunch/filou/keygenerator"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ var encryptFileCommand = cli.Command{
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "ecrypto"
|
app.Name = "filou"
|
||||||
app.Usage = "encrypt files"
|
app.Usage = "encrypt files"
|
||||||
app.Commands = []cli.Command{
|
app.Commands = []cli.Command{
|
||||||
createKeyCommand,
|
createKeyCommand,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/didiercrunch/ecrypto/helper"
|
"github.com/didiercrunch/filou/helper"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package payload
|
|||||||
import (
|
import (
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"crypto/des"
|
"crypto/des"
|
||||||
"github.com/didiercrunch/ecrypto/helper"
|
"github.com/didiercrunch/filou/helper"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
cryptoSHA512 "crypto/sha512"
|
cryptoSHA512 "crypto/sha512"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/didiercrunch/ecrypto/helper"
|
"github.com/didiercrunch/filou/helper"
|
||||||
"hash"
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package payload
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"github.com/didiercrunch/ecrypto/helper"
|
"github.com/didiercrunch/filou/helper"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/didiercrunch/ecrypto/helper"
|
"github.com/didiercrunch/filou/helper"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
+4
-4
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
const VERSION = "0.0.1"
|
const VERSION = "0.0.1"
|
||||||
|
|
||||||
var ecryptoDir string
|
var filouDir string
|
||||||
|
|
||||||
func ensureEcryptoDirectoryIsOkay(dir string) error {
|
func ensureEcryptoDirectoryIsOkay(dir string) error {
|
||||||
stat, err := os.Stat(dir)
|
stat, err := os.Stat(dir)
|
||||||
@@ -28,8 +28,8 @@ func ensureEcryptoDirectoryIsOkay(dir string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
ecryptoDir = path.Join(os.Getenv("HOME"), ".ecrypto")
|
filouDir = path.Join(os.Getenv("HOME"), ".filou")
|
||||||
if err := ensureEcryptoDirectoryIsOkay(ecryptoDir); err != nil {
|
if err := ensureEcryptoDirectoryIsOkay(filouDir); err != nil {
|
||||||
fmt.Println("cannot work with eCrypto directory", err)
|
fmt.Println("cannot work with eCrypto directory", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|
||||||
@@ -37,5 +37,5 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetEcryptoDir() string {
|
func GetEcryptoDir() string {
|
||||||
return ecryptoDir
|
return filouDir
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user