Unit Noso.Crypto

Description

This item has no description.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Packed Record DivResult  

Functions and Procedures

function B10ToB16(const sVal: String): String;
function B10ToB58(const sVal: String): String;
function B16ToB10(const sHex: String): String;
function B16ToB36(const sHex: String): String;
function B16ToB58(const sHex: String): String;
function B16ToB58Lite1_60(const sHex: String): String;
function B58ToB10(const sVal: String): String;
function B58ToB16(const sVal: String): String;
function BM58ToDec(number58: String): String;
function BMAdicion(numero1, numero2: String): String;
function BMB58resumen(numero58: String): String;
function BMB58resumenInt(numero58: String): Integer;
function BMB58resumenNew(numero58: String): String;
function BMDecTo58(numero: String): String;
function BMDecToHex(numero: String): String;
function BMDividir(Numero1, Numero2: String): DivResult;
function BMExponente(Numero1, Numero2: String): String;
function BMHexTo58(numerohex: String; alphabetnumber: Integer): String;
function BMHexToDec(numerohex: String): String;
function BMMultiplicar(Numero1, Numero2: String): String;
function CheckCertificate(certificate: String; out TimeStamp: String): String;
function CheckHashDiff(Target, ThisHash: String): String;
function ChecksumBase58(const S: String): Integer;
function ClearLeadingCeros(numero: String): String;
function FutureGetAddressFromPublicKey(const PubKey: String): String;
function GenerateNewAddress(out pubkey: String; out privkey: String): String;
function GetAddressFromPublicKey(PubKey: String; AddType: Integer = 0): String;
function GetCertificate(Pubkey, privkey, currtime: String): String;
function GetCertificateChecksum(certificate: String): String;
function GetMultiSource(Source: String; AddsTotal: Integer; Out OrderedSource: String): Boolean;
function GetOrderHash(TextLine: String): String;
function GetStringSigned(StringtoSign, PrivateKey: String): String;
function GetTransferHash(TextLine: String): String;
function HashMD160String(StringToHash: String): String;
function HashMD5File(FileToHash: String): String;
function HashMD5String(StringToHash: String): String;
function HashSha256String(StringToHash: String): String;
function IsValid58(base58text: String): Boolean;
function IsValidHashAddress(Address: String): Boolean;
function NewGetAddressFromPublicKey(PubKey: String): String;
function PonerCeros(numero: String; cuantos: Integer): String;
function VerifySignedString(StringToVerify, B64String, PublicKey: String): Boolean;

Constants

AddTypeMulti = 1;
AddtypeReg = 0;
B36Alphabet: String = '0123456789abcdefghijklmnopqrstuvwxyz';
B58Alphabet: String = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
HexAlphabet: String = '0123456789ABCDEF';

Description

Functions and Procedures

function B10ToB16(const sVal: String): String;

New base conversion functions

function B10ToB58(const sVal: String): String;

This item has no description.

function B16ToB10(const sHex: String): String;

This item has no description.

function B16ToB36(const sHex: String): String;

This item has no description.

function B16ToB58(const sHex: String): String;

This item has no description.

function B16ToB58Lite1_60(const sHex: String): String;

This item has no description.

function B58ToB10(const sVal: String): String;

This item has no description.

function B58ToB16(const sVal: String): String;

This item has no description.

function BM58ToDec(number58: String): String;

This item has no description.

function BMAdicion(numero1, numero2: String): String;

ADDS 2 NUMBERS

function BMB58resumen(numero58: String): String;

RETURN THE SUMATORY OF A BASE58

function BMB58resumenInt(numero58: String): Integer;

RETURN THE SUMATORY OF A BASE58

function BMB58resumenNew(numero58: String): String;

RETURN THE SUMATORY OF A BASE58

function BMDecTo58(numero: String): String;

CONVERTS A DECIMAL VALUE TO A BASE58 STRING

function BMDecToHex(numero: String): String;

CONVERTS A DECIMAL VALUE TO A HEX STRING

function BMDividir(Numero1, Numero2: String): DivResult;

DIVIDES TWO NUMBERS

function BMExponente(Numero1, Numero2: String): String;

CALCULATES A EXPONENTIAL NUMBER

function BMHexTo58(numerohex: String; alphabetnumber: Integer): String;

Hex to base 58

function BMHexToDec(numerohex: String): String;

HEX TO DECIMAL

function BMMultiplicar(Numero1, Numero2: String): String;

MULTIPLIER

function CheckCertificate(certificate: String; out TimeStamp: String): String;

Verify if a given certificate is valid and returns the address and timestamp

function CheckHashDiff(Target, ThisHash: String): String;

Verify the difference between MD5 hashes

function ChecksumBase58(const S: String): Integer;

This item has no description.

function ClearLeadingCeros(numero: String): String;

Big Maths * *FUNCTIONS OF BIGMATHS* *** REMOVES LEFT CEROS

function FutureGetAddressFromPublicKey(const PubKey: String): String;

This item has no description.

function GenerateNewAddress(out pubkey: String; out privkey: String): String;

Generates a new keys pair and returns the hash

function GetAddressFromPublicKey(PubKey: String; AddType: Integer = 0): String;

Generates the public hash from the public key

function GetCertificate(Pubkey, privkey, currtime: String): String;

Returns the Address certificate for the submitted data

function GetCertificateChecksum(certificate: String): String;

This item has no description.

function GetMultiSource(Source: String; AddsTotal: Integer; Out OrderedSource: String): Boolean;

getmulti 1,2 N31ThXmSR2gua5tfCFNLEkYK9yNQsDi,N31ThXmSR2gua5tfCFNLEkYK9yNQsDi

function GetOrderHash(TextLine: String): String;

Returns the Order hash, base36

function GetStringSigned(StringtoSign, PrivateKey: String): String;

Signs a message with the given privatekey

function GetTransferHash(TextLine: String): String;

Returns a transfer hash, base58

function HashMD160String(StringToHash: String): String;

Returns the hash RIPMED-160 of a string

function HashMD5File(FileToHash: String): String;

Returns the hash MD5 of a file on disk

function HashMD5String(StringToHash: String): String;

Returns the hash MD5 of a string

function HashSha256String(StringToHash: String): String;

Hashing functions Returns the hash Sha2-256 of a string

function IsValid58(base58text: String): Boolean;

General functions Verify if a string is a valid Base58 one

function IsValidHashAddress(Address: String): Boolean;

Checks if a string is a valid address hash

function NewGetAddressFromPublicKey(PubKey: String): String;

This item has no description.

function PonerCeros(numero: String; cuantos: Integer): String;

DRAW CEROS FOR MULTIPLICATION

function VerifySignedString(StringToVerify, B64String, PublicKey: String): Boolean;

Verify if a signed message is valid

Constants

AddTypeMulti = 1;

This item has no description.

AddtypeReg = 0;

This item has no description.

B36Alphabet: String = '0123456789abcdefghijklmnopqrstuvwxyz';

This item has no description.

B58Alphabet: String = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';

This item has no description.

HexAlphabet: String = '0123456789ABCDEF';

This item has no description.


Generated by PasDoc 0.16.0-snapshot.