on Windows DPAPI is the usual thing for this. Also, the AES algorithm seems to always return just a newline character