Difficulties in encrypting keys. (1 Viewer)

Mylton

Member
Local time
Today, 06:49
Joined
Aug 3, 2019
Messages
123
Good morning.
I have a table named TblRegistro.
and two modules (ModCriptografarSHA256 + Mod_geral).
One generates encryption in SHA256 and the other generates three keys (registry + machine + user).
When I click on the Generate button in the "FrmClientes" form, the registration key is not generated and the "user and machine" names are not encrypted in the TblRegistro table.

The codes used are in the attached example.
Any tips on why and how to resolve it?

Thanks.
 

Attachments

  • Test01.zip
    51.3 KB · Views: 62

Jason Lee Hayes

Active member
Local time
Today, 14:49
Joined
Jul 25, 2020
Messages
175
Just a quick glance but at no stage are you calling CriptografarSHA256 ?
The procedure works however; to test use the following in VBA Immediate Window:-

? CriptografarSHA256 ("test")

Should Produce:-

9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08
 

Mylton

Member
Local time
Today, 06:49
Joined
Aug 3, 2019
Messages
123
Ok.
I'll test it when I get home late from work.
thanks.
 

tvanstiphout

Active member
Local time
Today, 06:49
Joined
Jan 22, 2016
Messages
222
Not your current problem, but also highly recommended: put OPTION EXPLICIT at the top of every module.
and check Tools > Options > Require Variable Declaration so it is the default for new modules.
 

Users who are viewing this thread

Top Bottom