Password with £ when using security add-generic-password / find-generic-password How do I add/retrieve a password that contains £ using security add-generic-password and security find-generic-password?
security add-generic-password -a username -s &quot;test&quot; -w abc -U
security find-generic-password -a username -s &quot;test&quot; -w # output: abc
security add-generic-password -a username -s &quot;test&quot; -w abc£ -U
security find-generic-password -a username -s &quot;test&quot; -w # output: 616263c2a3
As a workaround, I now encode and decode to base64:
security add-generic-password -a username -s &quot;test&quot; -w $(echo &quot;abc£&quot; | base64) -U
security find-generic-password -a username -s &quot;test&quot; -w | base64 --decode