+ Reply to Thread
Results 1 to 4 of 4

Encrypting Macros: is there a way to protect code other than using Unviewable + ?

  1. #1
    Forum Contributor
    Join Date
    10-10-2018
    Location
    Calgary, Canada
    MS-Off Ver
    2016
    Posts
    214

    Encrypting Macros: is there a way to protect code other than using Unviewable + ?

    Hi there,

    I came across this page for encryption:
    http://programandonet.com/questions/...denas-en-excel

    In the suggestion entitled "This code works well for me (3DES Encryption / Decryption): "

    there is a statement:
    "I save INITIALIZATION_VECTOR and TRIPLE_DES_KEY as environment variables (obviously different values ​​from those published here) and I get them using the VBA Environ () function, so all the confidential data (passwords) in VBA code are encrypted."

    It seems to imply that by stating encryption keys as environment variables, it will allow them to be "encrypted" so no one could see these keys. I don't understand what this means, because as far as I know if you declare a encryption key constant in Module1, everyone who can access the VBA can see that encryption key.

    My goal is to protect my VBA code from being seen. Is the link above describing a way to do that? Or am I stuck using tools like Unviewable + ?

    Thanks!!!

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Encrypting Macros: is there a way to protect code other than using Unviewable + ?

    No, that's not what the page is describing. It's talking about how to do encryption as far as I can see, not encrypt the code in your workbook.

    I've yet to see a solution for hiding/making VBA code unviewable without wrapping it in an exe that isn't trivial to bypass (ie without using standard software) - that includes Unviewable+

  3. #3
    Forum Contributor
    Join Date
    10-10-2018
    Location
    Calgary, Canada
    MS-Off Ver
    2016
    Posts
    214

    Re: Encrypting Macros: is there a way to protect code other than using Unviewable + ?

    But you think Unviewable is a satisfactory solution? Thanks. I'm about to pull the trigger on it and need to make sure.

    My code has really good encryption, user login etc. but all of it is null and void if the VBA is viewable since the encryption algorithms and keys would be visible. Thanks!

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Encrypting Macros: is there a way to protect code other than using Unviewable + ?

    I think it's pretty easy to bypass, my honest opinion is that if you need security; you shouldn't be using Excel

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Extracting File as PDF & Encrypting
    By Harry Basra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2017, 04:21 AM
  2. How do you protect your VBA code (Macros) in the Mac version of Excel?
    By tony333 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 07-18-2017, 01:57 PM
  3. Encrypting cell changes
    By velavan in forum Excel General
    Replies: 1
    Last Post: 02-21-2011, 07:16 AM
  4. Encrypting Project
    By Drus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2011, 04:57 PM
  5. Protect Sheet & Password Protect Code
    By KLahvic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-13-2009, 04:08 PM
  6. How to protect desired area of workbook and protect code.
    By avveerkar in forum Excel General
    Replies: 4
    Last Post: 01-12-2006, 10:44 PM
  7. Replies: 5
    Last Post: 08-09-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1