In ruby, I encrypt a string using "crypt" method, for example:
str = "123"
strencrypt = str.crypt("aa")
I want to decrypt from strencrypt and obtain the original string. How can I achieve that? I have tried to use crypt method again:
str_ori = strencrypt.crypt("aa")
But it can not return the "123".
Anyone can help me?