v1.0.0
refactored dashmachine-crypto as dash-secure-message@1.0.0
This is an updated version of the former dashmachine-crypto package which is now deprecated.
The encryptFoUsername() function from that library has been removed as it is considered unsafe due to the possibility of name transfers in the future.
You should now use the dashmachine/dash-platform-user package to retrieve the correct keys and pass these directly to the new library's encrypt() and decrypt() methods.
Return signature and error handling have also been updated to return either the result or throw an error.
https://www.npmjs.com/package/dash-secure-message
https://github.com/dashmachine/dash-secure-message/releases/tag/v1.0.0
https://github.com/dashmachine/dash-secure-message