From bf7f911e7928818d0b899aa503e571c01e7255d1 Mon Sep 17 00:00:00 2001 From: "didier.amyot" Date: Fri, 17 Oct 2014 16:23:06 -0400 Subject: [PATCH] updated code to new url --- .gitignore | 2 +- .goxc.json | 2 +- README.md | 6 +++--- doc/fileformat.md | 2 +- encrypter/aes_ofb_encrypter_test.go | 2 +- encrypter/rsa_encryptor_test.go | 2 +- envelop/envelop_test.go | 2 +- keygenerator/key_generator.go | 4 ++-- keygenerator/key_generator_test.go | 2 +- keys/keys.go | 2 +- keys/keys_test.go | 2 +- main.go | 4 ++-- payload/block_test.go | 2 +- payload/blockmode_test.go | 2 +- payload/hash_test.go | 2 +- payload/metadata_test.go | 2 +- payload/payload_test.go | 2 +- shared/shared.go | 8 ++++---- 18 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index a2cd4cb..46ecb0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ *cover.out -/ecrypto +/filou # Compiled Object files, Static and Dynamic libs (Shared Objects) *.o *.a diff --git a/.goxc.json b/.goxc.json index dd5887c..ac16cda 100644 --- a/.goxc.json +++ b/.goxc.json @@ -1,6 +1,6 @@ { "PackageVersion": "0.0.1", - "PrereleaseInfo": "ecrypto", + "PrereleaseInfo": "snapshot", "ConfigVersion": "0.9", "Arch": "386,amd64", "Os": "windows,linux,darwin", diff --git a/README.md b/README.md index 46ea10a..ccc42bf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Filou -> cryptogra **phy** | **loo** phole +> cryptogra**phy** (no) **loo** phole Filou is in devlopment. It is not yet a super hyper cool program but @@ -8,8 +8,8 @@ we are going there. ## the name -*Filou* was my brother nickname. He died the 9th octobre 2014. This program is -dedicated to his memory. +*Filou* is my brother, Charles Philippe Amyot, child nickname. He died the 9th +octobre 2014. This program is dedicated to his memory. ## Use case diff --git a/doc/fileformat.md b/doc/fileformat.md index 051c887..8cf5f6b 100644 --- a/doc/fileformat.md +++ b/doc/fileformat.md @@ -9,7 +9,7 @@ Note that any private key are a public key. ### 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. 1. a `data.encrypted` containing the encrypted data diff --git a/encrypter/aes_ofb_encrypter_test.go b/encrypter/aes_ofb_encrypter_test.go index d58e76f..09916ae 100644 --- a/encrypter/aes_ofb_encrypter_test.go +++ b/encrypter/aes_ofb_encrypter_test.go @@ -4,7 +4,7 @@ import ( "crypto/aes" "crypto/cipher" "crypto/rand" - . "github.com/didiercrunch/ecrypto/helper" + . "github.com/didiercrunch/filou/helper" "reflect" "strings" "testing" diff --git a/encrypter/rsa_encryptor_test.go b/encrypter/rsa_encryptor_test.go index 876d4b3..f3e504e 100644 --- a/encrypter/rsa_encryptor_test.go +++ b/encrypter/rsa_encryptor_test.go @@ -6,7 +6,7 @@ import ( "crypto/rsa" "crypto/sha512" "fmt" - "github.com/didiercrunch/ecrypto/helper" + "github.com/didiercrunch/filou/helper" "testing" ) diff --git a/envelop/envelop_test.go b/envelop/envelop_test.go index b655cc6..607434a 100644 --- a/envelop/envelop_test.go +++ b/envelop/envelop_test.go @@ -5,7 +5,7 @@ import ( "bytes" "errors" "fmt" - "github.com/didiercrunch/ecrypto/helper" + "github.com/didiercrunch/filou/helper" "io" "reflect" "testing" diff --git a/keygenerator/key_generator.go b/keygenerator/key_generator.go index 23ad1ba..ac25a57 100644 --- a/keygenerator/key_generator.go +++ b/keygenerator/key_generator.go @@ -5,8 +5,8 @@ import ( "crypto/rsa" "encoding/json" "errors" - "github.com/didiercrunch/ecrypto/keys" - "github.com/didiercrunch/ecrypto/shared" + "github.com/didiercrunch/filou/keys" + "github.com/didiercrunch/filou/shared" "os" "path" ) diff --git a/keygenerator/key_generator_test.go b/keygenerator/key_generator_test.go index 30498b9..1cb8796 100644 --- a/keygenerator/key_generator_test.go +++ b/keygenerator/key_generator_test.go @@ -2,7 +2,7 @@ package keygenerator import ( "encoding/json" - "github.com/didiercrunch/ecrypto/keys" + "github.com/didiercrunch/filou/keys" "io/ioutil" "os" "path" diff --git a/keys/keys.go b/keys/keys.go index 3cb40e8..957c3e4 100644 --- a/keys/keys.go +++ b/keys/keys.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/didiercrunch/ecrypto/shared" + "github.com/didiercrunch/filou/shared" "math/big" ) diff --git a/keys/keys_test.go b/keys/keys_test.go index ab0205e..d54fb75 100644 --- a/keys/keys_test.go +++ b/keys/keys_test.go @@ -3,7 +3,7 @@ package keys import ( "crypto/rsa" "encoding/json" - . "github.com/didiercrunch/ecrypto/helper" + . "github.com/didiercrunch/filou/helper" "math/big" "reflect" "testing" diff --git a/main.go b/main.go index ea9d263..fc62904 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/codegangsta/cli" - "github.com/didiercrunch/ecrypto/keygenerator" + "github.com/didiercrunch/filou/keygenerator" "os" ) @@ -40,7 +40,7 @@ var encryptFileCommand = cli.Command{ func main() { app := cli.NewApp() - app.Name = "ecrypto" + app.Name = "filou" app.Usage = "encrypt files" app.Commands = []cli.Command{ createKeyCommand, diff --git a/payload/block_test.go b/payload/block_test.go index bfdab5b..c69d0ca 100644 --- a/payload/block_test.go +++ b/payload/block_test.go @@ -6,7 +6,7 @@ import ( "crypto/cipher" "errors" "fmt" - "github.com/didiercrunch/ecrypto/helper" + "github.com/didiercrunch/filou/helper" "reflect" "testing" ) diff --git a/payload/blockmode_test.go b/payload/blockmode_test.go index 61270eb..a07ec90 100644 --- a/payload/blockmode_test.go +++ b/payload/blockmode_test.go @@ -3,7 +3,7 @@ package payload import ( "crypto/cipher" "crypto/des" - "github.com/didiercrunch/ecrypto/helper" + "github.com/didiercrunch/filou/helper" "testing" ) diff --git a/payload/hash_test.go b/payload/hash_test.go index 5bbfb08..d16172e 100644 --- a/payload/hash_test.go +++ b/payload/hash_test.go @@ -5,7 +5,7 @@ import ( cryptoSHA512 "crypto/sha512" "encoding/hex" "errors" - "github.com/didiercrunch/ecrypto/helper" + "github.com/didiercrunch/filou/helper" "hash" "io" "io/ioutil" diff --git a/payload/metadata_test.go b/payload/metadata_test.go index fbc1236..61ce4d0 100644 --- a/payload/metadata_test.go +++ b/payload/metadata_test.go @@ -2,7 +2,7 @@ package payload import ( "encoding/json" - "github.com/didiercrunch/ecrypto/helper" + "github.com/didiercrunch/filou/helper" "reflect" "strings" "testing" diff --git a/payload/payload_test.go b/payload/payload_test.go index 6c2ee19..7207c60 100644 --- a/payload/payload_test.go +++ b/payload/payload_test.go @@ -4,7 +4,7 @@ import ( "bytes" "errors" "fmt" - "github.com/didiercrunch/ecrypto/helper" + "github.com/didiercrunch/filou/helper" "io/ioutil" "reflect" "testing" diff --git a/shared/shared.go b/shared/shared.go index 54abe9e..84d3d53 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -9,7 +9,7 @@ import ( const VERSION = "0.0.1" -var ecryptoDir string +var filouDir string func ensureEcryptoDirectoryIsOkay(dir string) error { stat, err := os.Stat(dir) @@ -28,8 +28,8 @@ func ensureEcryptoDirectoryIsOkay(dir string) error { } func init() { - ecryptoDir = path.Join(os.Getenv("HOME"), ".ecrypto") - if err := ensureEcryptoDirectoryIsOkay(ecryptoDir); err != nil { + filouDir = path.Join(os.Getenv("HOME"), ".filou") + if err := ensureEcryptoDirectoryIsOkay(filouDir); err != nil { fmt.Println("cannot work with eCrypto directory", err) os.Exit(1) @@ -37,5 +37,5 @@ func init() { } func GetEcryptoDir() string { - return ecryptoDir + return filouDir }