Encrypting MD entries value

I am trying to encrypt the MD entries key or value using window.safeMutableData.encryptKey and window.safeMutableData.encryptValue. However, the result shows:

Is the function being remove from the API?

Encryption of MD keys and values works but you don’t provide enough information to see what is happening there.

You can see working code in the functions getMutableDataValue() and setMutableDataValue() below. There are more examples in that file that might be closer to what you are doing if you search for them.