Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows use #8

Closed
RaquisDawLn opened this issue Jun 21, 2022 · 1 comment
Closed

Windows use #8

RaquisDawLn opened this issue Jun 21, 2022 · 1 comment

Comments

@RaquisDawLn
Copy link

When using

#[macro_use]
extern crate litcrypt;

use_litcrypt!();

fn main(){
println!("his name is: {}", lc!("Voldemort"));
}

and using the command "export LITCRYPT_ENCRYPT_KEY="myverysuperdupermegaultrasecretkey"" i get this response,

export LITCRYPT_ENCRYPT_KEY="myverysuperdupermegaultrasecretkey"
export : The term 'export' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1

  • export LITCRYPT_ENCRYPT_KEY="myverysuperdupermegaultrasecretkey"
  •   + CategoryInfo          : ObjectNotFound: (export:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
      
      Then i tried this since i seen a repo of someone using litcrypt and had it like this,
      
      #[macro_use]
    

extern crate litcrypt;

use_litcrypt!("myverysuperdupermegaultrasecretkey");

fn main(){
println!("his name is: {}", lc!("Voldemort"));
}

I get a response saying that the key is not set, i am unsure what im doing incorrect and would really love some help to figure this out
Error when running with key on line 4
help: message: LITCRYPT_ENCRYPT_KEY environment variable not set.

@anvie
Copy link
Owner

anvie commented Jun 21, 2022

In Windows you should set environment variable from System settings, please take a look at this tutorial how to set environment variable in Windows: https://www.computerhope.com/issues/ch000549.htm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants