Recent

Author Topic: Lazarus and .NET Library (Multilang)  (Read 13184 times)

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Lazarus and .NET Library (Multilang)
« on: August 20, 2011, 01:46:17 pm »
How can i use .NET Framework 4 class in Lazarus?
Example: System.Security.Cryptography.SHA512

Hogyan használhatok .net osztályokat Lazarusban?
Példa: System.Security.Cryptography.SHA512
« Last Edit: August 22, 2011, 06:56:17 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Lazarus and .NET Library
« Reply #1 on: August 20, 2011, 01:57:58 pm »
Use a Pascal cryptography component instead:

http://wiki.lazarus.freepascal.org/DCPcrypt

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Lazarus and .NET Library
« Reply #2 on: August 20, 2011, 06:32:36 pm »
Thanks, i think, I can use other .NET Library/class...
Kösz, Én tudom, Szeretnék más .NET könyvtárat is felhasználni...
« Last Edit: August 22, 2011, 06:03:38 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus and .NET Library
« Reply #3 on: August 20, 2011, 06:56:59 pm »
Quote
Thanks, i think, I can use other .NET Library/class...
Currently calling .NET managed code from FPC isn't supported though it's possible in theory (since it's already possible with C++ if I'm not mistaken), only the opposite is possible for now.

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Lazarus and .NET Library
« Reply #4 on: August 20, 2011, 07:04:06 pm »
Ok, thanks...
Ok, kössz...

Do you know Hash and Cryptography definition in Lazarus?
I'd like to do their own project.

Nem tudsz titkosítás definíciót Lazarushoz?
Szeretnék saját projektet csinálni.
« Last Edit: August 22, 2011, 06:04:42 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

nicke85

  • Jr. Member
  • **
  • Posts: 92
  • #13#10
Re: Lazarus and .NET Library
« Reply #5 on: August 20, 2011, 10:12:56 pm »
silvioclecio has solution for hash and encryption in his project
http://code.google.com/p/lazsolutions/
:)
« Last Edit: August 20, 2011, 10:20:08 pm by nicke85 »
ArchLinux X64 (XFCE) & Windows 7 SP1 Ultimate X64
FPC 2.7.1 / Lazarus 1.1 / ZeosDBO / fortes4lazarus -- all svn

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Lazarus and .NET Library
« Reply #6 on: August 20, 2011, 10:47:04 pm »
Thanks!
 
I thought In this description:
Just my theory on my own.
http://en.wikipedia.org/wiki/SHA-2#SHA-256_.28a_SHA-2_variant.29_pseudocode

Hasonlóra gondoltam mint ez:
Csak az én saját elméletemmel.
http://en.wikipedia.org/wiki/SHA-2#SHA-256_.28a_SHA-2_variant.29_pseudocode

I thought some kind of encryption theory.
Valamilyen titkosítás elméletre gondoltam.

You know the theory of pi? Lazarussal can count on over 10 bytes? (Extended type)
Tudjátok a pi elméletét? Lazarussal lehet tovább számolni, mint 10 bájt? (Extended típus)
« Last Edit: August 22, 2011, 06:06:02 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus and .NET Library
« Reply #7 on: August 21, 2011, 12:13:09 am »
Quote
Do you know Hash and Cryptography definition in Lazarus?
Felipe gave you a link, have you seen that? Or do I misunderstand what you're looking for?
Quote
Lazarussal can count on over 10 bytes? (Extended type)
Extended is supported, but longer bytes would require 3rd party multiprecision integer library support like GMP or NX Numerics.

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Lazarus and .NET Library
« Reply #8 on: August 21, 2011, 01:17:22 am »
I've seen them all, I do not want 3rd party components, sources, but the mathematical functions, formulas that will help me be encrypted, hashed. I do not want to use GNU-licensed sources ...

Láttam mindet, Én nem harmadik kézből szeretnék forrásokat, hanem matematikai függvényeket, képleteket melyek segítenek nekem titkosítani. Nem akarok GNU licences forrásokat használni...


These licenses are usually use:
Ezeket a licenceket szoktam használni:
CC BY-SA 3.0, CC BY-NC-ND 3.0, GNU GPLv3 stb...

Currently I use:
Jelenleg ezt használom:
CC BY-NC-ND 3.0

So, I want to do the program...
Szóval, magam akarom csinálni a programot...
« Last Edit: August 22, 2011, 06:06:32 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus and .NET Library
« Reply #9 on: August 21, 2011, 06:46:45 am »
Quote
I've seen them all, I do not want 3rd party components, sources, but the mathematical functions, formulas that will help me be encrypted, hashed. I do not want to use GNU-licensed sources ...
Oh, OK feel free to do so. DCPcrypt is MIT licensed anyway, not GNU.

TheProgrammer

  • New Member
  • *
  • Posts: 48
  • Translator and programmer/Fordító és programozó
    • SourceCodePower.com
Re: Lazarus and .NET Library
« Reply #10 on: August 21, 2011, 10:46:22 am »
Yeah, okay ... Anyway, I thought a definition. This definition describes the process of encryption, and so do I own :)

Ja, oké... Amúgy definicióra gondoltam. Ez a definició leírja a titkosítás menetét, és így tudok sajátot csinálni :)

Example:
Definition: E=NC2
Def. Example: Ex := 12 or 46;...

Input: 'TEDS' -> Output: '$d64'
or
Input: 'TEDS' -> Fix output: '1s5f8e9g5v6e8d9seg8dg6d5' (This 24 byte fix)

I like the mathematical solutions to...
Szeretem a matematikai megoldásokat...
« Last Edit: August 22, 2011, 06:06:56 pm by TheProgrammer »
Translator and programmer/Fordító és programozó (Multilang)
My webpage/Weboldalam:
www.sourcecodepower.com

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018