You can use AT+NK and AT+NI to retrieve the values in hex.
at+ni=1,hellothere
Set Network Name: hellothere
OK
at+ni
4d-b0-93-6c-d0-64-24-ec
Passphrase: ‘hellothere’
OK
at+nk=1,hellotoyou
Set Network Passphrase: hellotoyou
OK
at+nk
13.c7.2d.61.78.01.9e.db.dc.7e.a4.29.ad.82.a5.88
Passphrase: ‘hellotoyou’
OK