>>>>>If all this function does is encrypt a password there are lots of examples written in c# out there ( Google is your friend )
>>>>
>>>>I did but so for I could not find a simple enough c# encrypt function that can be "duplicated" in VFP. You see I need a function that would do the same from VFP and c# end.
>>>>Thank you.
>>>
>>>Presumably you mean that the C# version should be usable with strings already encoded using the VFP cipher library that you mentioned?
>>>
>>>Al's pointer to Rick's paper is still valid - you could create a small VFP com interop which could be accessed from .net.
>>>
>>>But which functions of that library do you actually use ? - the core encryption is fairly straightforward.
>>>I took a look at the original C code and it would seem that a C# version should be simple enough to implement......
>>
>>The function cipher() I am using in VFP code is written in VFP; not in C. Maybe Sergey also wrote it in C but the one he recommended to me years ago was the VFP function. To be honest, I don't even understand all VFP functions he used in creating the cipher(). So converting/rewriting it to C# would be a great challenge.
>
>Do you know if this one
https://www.levelextreme.com/ViewPageNewDownload.aspx?ID=21474 is the same function but in C?
I don't know. The original VFP function (that I was using) had been written by Sergey Berezniker. So you may want to ask him.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham