Solved

Use System.Security.Cryptography in MS Access

Posted on 2009-07-06
4
1,326 Views
Last Modified: 2013-11-27
I need to encrypt/decrypt string data.  I have read and researched a lot about how to use System.Security.Cryptography.  Evidently I am missing something fundamental.  I need a function that is easy to use that takes a string, encrypts it and returns the encrypted string (and vise versa).

All the examples use another platform other than MS Access 2007.  This is my only platform.  First, is there a reference I need to add to my VBA project?
Second, can I have an example of how to use it?

Thanks.
0
Comment
Question by:AviationAce
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:ErezMor
ID: 24786834
System.Security.Cryptography is a .net namespace, so you cannot use it directly in access
you can build a .net com-visible dll that will encapsulate the functions you need (like Cypher and Decypher or something)
and then register that dll on the target machine, and then add a reference to it in references section in access, and only then you would be able to use it.
quite a long way to go, but if you need it, then good luck
if you need help along the way, though, feel free to ask
0
 

Author Comment

by:AviationAce
ID: 24787287
Bummer.  There is no way I can implement that in my case.  You have any other suggestions for writing an encryption function?
0
 
LVL 12

Accepted Solution

by:
ErezMor earned 500 total points
ID: 24787349
0
 

Author Comment

by:AviationAce
ID: 24788918
I am looking at what's on www.cryptovb.com.  I downloaded the files there and I noticed it is using advapi32.dll a lot.
Can you give a me an example of how to use it?  I just need to input a string and have it encrypted, and then be able to do the reverse.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

There are many reasons malware will stay around and continue to grow as a business.  The biggest reason is the expanding customer base.  More than 40% of people who are infected with ransomware, pay the ransom.  That makes ransomware a multi-million…
By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now