I wrote an app that -- well does more than this but what I want it to do is to enable users to change their passwords, so I wrote the following: https://play.golang.org/p/RUbm8e_tJY This seems to work, and i get my base64 encrypted password. When I test that against OpenSSL I don't get the same results. For example when I ran the code, it gave me this:
Decoded: WSAtwTSTMVydiJLx00ATfp8grl4KbpgB to Abc.1234 So now if I take the WSAtwTSTMVydiJLx00ATfp8grl4KbpgB I should be able to decrypt that with OpenSSL: echo "WSAtwTSTMVydiJLx00ATfp8grl4KbpgB" | openssl des3 -d -nosalt -a enter des-ede3-cbc decryption password: bad decrypt 140331031709344:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:539: >�x�����}9L �9[ Anyone know of a better way to test to make sure the code is correct and the base64 string that comes out can be decrypted by something other than another go program? Thanks, Rich -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.