Win32crypt CryptProtectData

Hello:

I’m trying to generate .rdp files on the fly. To do this I need to
generate an user password.

I’m looking for a gem that can be used in a similar way that the next
python code. Anyone knows about a gem implementing CryptProtectData
“like” method?

I have been googling but I didn’t find anything :frowning:

import win32crypt
import binascii

pwdHash =
win32crypt.CryptProtectData(u"MYPASSWORD",u’psw’,None,None,None,0)
print binascii.hexlify(pwdHash)

Regards

Raul

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs