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!