Encrypting data with ruby decrypting with node

后端 未结 3 891
礼貌的吻别
礼貌的吻别 2021-02-08 19:55

I want to encrypt some data in a ruby app and then decode it in a nodejs app. I have been trying to get this to work and now I am just trying to encrypt the same piece of data i

3条回答
  •  时光取名叫无心
    2021-02-08 20:41

    OK. I want to thank everyone for helping me out. Basically this thread here answers my question: https://github.com/joyent/node/issues/1395. I am going to go ahead and post the two programs in case anyone else has to go through this rigamarole. Keep in mind this isn't mean to be hardcore secure, this is a stepping stone for ruby encrypting data and node decrypting it. You will have to take more steps to make sure higher security measures are taken.

    The code is located at this gist: https://gist.github.com/799d6021890f34734470

    These were run on ruby 1.9.2p290 and node 0.4.10

提交回复
热议问题