Win32crypt CryptProtectData


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 =
print binascii.hexlify(pwdHash)



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