diff options
author | Teddy Wing | 2018-11-06 01:25:24 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-06 01:25:24 +0100 |
commit | ee46dae322972b23cf9751a645dc97fbe4c5bf75 (patch) | |
tree | 5649405c7f200abe5e33b54fa2e1f316a5e7e4a2 | |
parent | 96c064130dee83f4838bcc1618757575a193b0e1 (diff) | |
download | dome-key-web-ee46dae322972b23cf9751a645dc97fbe4c5bf75.tar.bz2 |
aquatic-prime: Base64 encode the signature
-rw-r--r-- | license-generator/Cargo.lock | 16 | ||||
-rw-r--r-- | license-generator/aquatic-prime/Cargo.toml | 1 | ||||
-rw-r--r-- | license-generator/aquatic-prime/src/lib.rs | 3 |
3 files changed, 19 insertions, 1 deletions
diff --git a/license-generator/Cargo.lock b/license-generator/Cargo.lock index 777480b..f5309f8 100644 --- a/license-generator/Cargo.lock +++ b/license-generator/Cargo.lock @@ -2,15 +2,29 @@ name = "aquatic-prime" version = "0.0.1" dependencies = [ + "base64 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", "openssl 0.10.15 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] +name = "base64" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "byteorder 1.2.7 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] name = "bitflags" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] +name = "byteorder" +version = "1.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] name = "cc" version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -93,7 +107,9 @@ version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" [metadata] +"checksum base64 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "621fc7ecb8008f86d7fb9b95356cd692ce9514b80a86d85b397f32a22da7b9e2" "checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" +"checksum byteorder 1.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "94f88df23a25417badc922ab0f5716cc1330e87f71ddd9203b3a3ccd9cedf75d" "checksum cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)" = "f159dfd43363c4d08055a07703eb7a3406b0dac4d0584d96965a3262db3c9d16" "checksum cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "082bb9b28e00d3c9d39cc03e64ce4cea0f1bb9b3fde493f0cbc008472d22bdf4" "checksum fastcgi 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4159a0f48bea0281602e508eb070d7d7ba1f6ac2480f9db1a60a39274aea1cc" diff --git a/license-generator/aquatic-prime/Cargo.toml b/license-generator/aquatic-prime/Cargo.toml index a4f1dba..40e3fcd 100644 --- a/license-generator/aquatic-prime/Cargo.toml +++ b/license-generator/aquatic-prime/Cargo.toml @@ -3,4 +3,5 @@ name = "aquatic-prime" version = "0.0.1" [dependencies] +base64 = "0.10.0" openssl = "0.10.15" diff --git a/license-generator/aquatic-prime/src/lib.rs b/license-generator/aquatic-prime/src/lib.rs index 5ecbeee..83d230d 100644 --- a/license-generator/aquatic-prime/src/lib.rs +++ b/license-generator/aquatic-prime/src/lib.rs @@ -1,3 +1,4 @@ +extern crate base64; extern crate openssl; use std::collections::HashMap; @@ -60,7 +61,7 @@ impl<'a> AquaticPrime<'a> { println!("{:?}", String::from_utf8_lossy(&signature)); - String::new() + base64::encode(&signature[..]) } } |