Thanks for the reminder Elrick - you know I'd forgotten that I'd already done that! :signOops: Age creeping up no doubt?Hi TWELVE. MD5 library (thanks to agraham) can be found here:
http://basic4ppc.com/forum/showthread.php?t=1935
It may be standard but where is the algorithm?Crypt is a standard unix encryption function...see this link:
A lib is a C not really a .NET concept. I think you mean how can you access the classes and methods of the Common Language Runtime. The answer, as far as Basic4PPC is concerned, is that you write a library. Most B4PPC libraries are shallow wrappers for calls to facilities offered by the CLR. One such is my new CryptoEx library http://www.b4x.com/forum/showthread.php?p=11986 which implements MD5 and DES.Another question: how can i use the .net lib functions in B4P
It may be standard but where is the algorithm?
A lib is a C not really a .NET concept. I think you mean how can you access the classes and methods of the Common Language Runtime.
The answer, as far as Basic4PPC is concerned, is that you write a library. Most B4PPC libraries are shallow wrappers for calls to facilities offered by the CLR.
One such is my new CryptoEx library http://www.b4x.com/forum/showthread.php?p=11986 which implements MD5 and DES.
Coding and application safety. Managed (.NET) programming is the future. Silverlight, Windows Programming Foundation and Windows Communication Foundation are all .NET based. More will follow. .Net is available on Unix/Linux under the guise of the Mono project http://www.mono-project.com/Main_Page Check the .NET entry on Wikipedia.So - from this point of view i can't see any advantage the .net is giving to me.
In that they are written to run under the CLR yes. But the CLR together with the .NET compilers provide the ability to access conventional DLLs (termed P/Invoke - platform invoke) and COM components using what are known as Interop Assemblieshttp://www.b4x.com/forum/showthread.php?t=1854Does this mean, a B4P Lib is always a wrapper lib for the CLR ( or something else?
No!Can't i use .NET classes without the use of such a wrapper lib..?
Yes. Read this http://www.b4x.com/forum/showthread.php?p=10607&highlight=just+in+time#post10607is a B4P lib different from a usual windows dll...? Tried to involve a normal windows DLL, but this didn't work - got an error message ( something related to assemblies...;-)
Yes, already got TripleDES, RC2 and Rijndael implemented (dead easy after getting DES working as the symmetric algorithms share a common programming model). About to look at asymmetric algorithms.I was waiting for such one...do you plan to expand that lib
The .Net runtime is already installed on all devices and most of the desktops so the runtime should not be a big issue.
The door library allows you to use .Net classes directly.
Yes, already got TripleDES, RC2 and Rijndael implemented (dead easy after getting DES working as the symmetric algorithms share a common programming model).
About to look at asymmetric algorithms
No. I'm just an retired (early) System Designer keeping my interest up and my hand in (or vice versa). I do have a Paypal account thoughErel is your boss...?
I've no idea about SSL - but if you say soThat's the interesting stuff...so SSL is then much closer as i thought...?))
You'll come on side one day when you see the light.Need some more PROs on .NET...?))
You'll come on side one day when you see the light.
For a bit of light relief I located the source of crypt and looked at. It is HORRIBLE in that it modifies the DES algorithm itself do do it's salting so you can't use a standard DES implementation to implement it.Unix Crypt would be a good expansion
For i = 0 To ArrayLen(code())-1
str = str & Chr(code(i))
Next
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?