I have been successfully using data encryption / decryption functions for a long time and entering them into the SQL database.
I wanted to do the same thing by writing the encrypted data to the Registry (RegistrySet), but in some cases the RegistryGet function does NOT return the correct data.
I use Mr. Roland Smith's n_cryptoapi.of_Encrypt and n_cryptoapi.of_Decrypt functions for encryption.
I am grateful for every hint!
I saw I was going to test Roland's proposal in the coming days.
The winning proposal is of course from Roland Smith, that is the use of the Blob variable with RegBinary! parameter.