Skip to content

Commit

Permalink
update encrypt_string macro
Browse files Browse the repository at this point in the history
  • Loading branch information
dronavallipranav committed Jan 10, 2024
1 parent ea02ce3 commit d149392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion labyrinth_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "labyrinth_macros"
version = "2.0.0"
version = "3.0.0"
edition = "2021"
authors = ["Pranav Dronavalli <[email protected]>"]
description = "A procedural macro crate for the cryptify crate meant to provide obfuscation through compile time string encryption. not meant to be used standalone"
Expand Down
2 changes: 1 addition & 1 deletion labyrinth_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn encrypt_string(input: TokenStream) -> TokenStream {
let encrypted_string = xor_cipher(&string, &key);

let output = quote! {
cryptify::decrypt_string(#encrypted_string)
cryptify::decrypt_string(#encrypted_string).as_ref()
};

TokenStream::from(output)
Expand Down

0 comments on commit d149392

Please sign in to comment.