Crypto for Modern Object Pascal #pascal #lazarus #freepascal #fpc #crypto #hash #cryptography #library

Xor-el.CryptoLib4Pascal

Ugochukwu Mmaduekwe c2bd7dbd5c minor syntatic change. 8 anni fa
CryptoLib c2bd7dbd5c minor syntatic change. 8 anni fa
CryptoLib.Samples 2850405e8c Addition of ECSchnorr Signatures. 8 anni fa
CryptoLib.Tests af89f03479 Added DigestRandomNumber Tests. 8 anni fa
.gitignore 5130859868 updated gitignore to support FreePascal and Lazarus. 8 anni fa
.travis.install.py 07c596555d added travis template. 8 anni fa
.travis.yml 07c596555d added travis template. 8 anni fa
LICENSE 6e961db5dd Initial commit 8 anni fa
README.md d991d013be fixed README formatting. 8 anni fa

README.md

CryptoLib4Pascal

CryptoLib4Pascal is a Cryptographic Package for Delphi/FreePascal Compilers that provides at the moment support for creating, signing and verifying ECDSA and ECShnorr Signatures using various curves and hashes.

Supported Algorithms:

Supported Elliptic Curves at the moment are secp256k1, sect283k1, secp384r1 and secp521r1.

Supported signing algorithms 
ECDSA
NONEwithECDSA, SHA-1withECDSA, SHA-224withECDSA, 
SHA-256withECDSA, SHA-384withECDSA, SHA-512withECDSA and RIPEMD160withECDSA

ECSchnorr
SHA-1withECSCHNORRBSI, SHA-224withECSCHNORRBSI, SHA-256withECSCHNORRBSI, SHA-384withECSCHNORRBSI,
SHA-512withECSCHNORRBSI, RIPEMD160withECSCHNORRBSI

SHA-1withECSCHNORRISO, SHA-224withECSCHNORRISO, SHA-256withECSCHNORRISO, SHA-384withECSCHNORRISO, 
SHA-512withECSCHNORRISO, RIPEMD160withECSCHNORRISO

SHA-1withECSCHNORRISOx, SHA-224withECSCHNORRISOx, SHA-256withECSCHNORRISOx, SHA-384withECSCHNORRISOx,
SHA-512withECSCHNORRISOx, RIPEMD160withECSCHNORRISOx 

SHA-1withECSCHNORRLIBSECP, SHA-224withECSCHNORRLIBSECP, SHA-256withECSCHNORRLIBSECP, SHA-384withECSCHNORRLIBSECP,
SHA-512withECSCHNORRLIBSECP, RIPEMD160withECSCHNORRLIBSECP 

Dependencies:

HashLib4Pascal >= v2.3

SimpleBaseLib4Pascal >= v1.2

For FreePascal v3.0.x Generics.Collections

Supported Compilers

FreePascal 3.0.0 and Above.

Delphi 2010 and Above.

Installing the Library.

Method One:

Use the Provided Packages in the "Packages" Folder.

Method Two:

Add the Library Path and Sub Path to your Project Search Path.

Usage Examples.

Check the "CryptoLib.Samples" folder and the Unit Tests.

Unit Tests.

To Run Unit Tests,

For FPC 3.0.0 and above

Simply compile and run "CryptoLib.Tests" project in "FreePascal.Tests" Folder.

For Delphi 2010 and above

Method One (Using DUnit Test Runner)

 To Build and Run the Unit Tests For Delphi 10 Tokyo (should be similar for 
 other versions)

1). Open Project Options of Unit Test (CryptoLib.Tests) in "Delphi.Tests" Folder.

2). Change Target to All Configurations (Or "Base" In Older Delphi Versions.)

3). In Output directory add ".\$(Platform)\$(Config)" without the quotes.

4). In Search path add "$(BDS)\Source\DUnit\src" without the quotes.

5). In Unit output directory add "." without the quotes.

6). In Unit scope names (If Available), Delete "DUnitX" from the List.

Press Ok and save, then build and run.

Method Two (Using TestInsight) (Preferred).

1). Download and Install TestInsight.

2). Open Project Options of Unit Test (CryptoLib.Tests.TestInsight) in "Delphi.Tests" 
    Folder. 

3). Change Target to All Configurations (Or "Base" In Older Delphi Versions.)

4). In Unit scope names (If Available), Delete "DUnitX" from the List.

5). To Use TestInsight, right-click on the project, then select 
    "Enable for TestInsight" or "TestInsight Project".
    Save Project then Build and Run Test Project through TestInsight. 

Acknowledgements

Thanks to Sphere 10 Software (http://sphere10.com) for sponsoring the development of this library.

License

This "Software" is Licensed Under MIT License (MIT) .

Tip Jar

  • :dollar: Bitcoin: 1MhFfW7tDuEHQSgie65uJcAfJgCNchGeKf
  • :euro: Ethereum: 0x6c1DC21aeC49A822A4f1E3bf07c623C2C1978a98
  • :pound: Pascalcoin: 345367-40